Team::setCreatedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the rafrsr/lib-array2object package.
5
 *
6
 * (c) Rafael SR <https://github.com/rafrsr>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Rafrsr\LibArray2Object\Tests\Fixtures;
12
13
use Rafrsr\LibArray2Object\Tests\Fixtures\NameSpace2\Manager;
14
use Rafrsr\LibArray2Object\Tests\Fixtures\NameSpace2\Manager as Trainer;
15
16
class Team extends AbstractTeam
17
{
18
    /**
19
     * @var Trainer
20
     */
21
    protected $manager;
22
23
    /**
24
     * @var \DateTime
25
     */
26
    protected $createdAt;
27
28
    /**
29
     * @var int
30
     */
31
    protected $points;
32
33
    /**
34
     * @var array|Player[]|[]
35
     */
36
    protected $players;
37
38
    /**
39
     * @var array|int[]
40
     */
41
    protected $scores;
42
43
    /**
44
     * AbstractTeam constructor.
45
     *
46
     * @param string $name
47
     */
48
    public function __construct($name = null)
49
    {
50
        parent::__construct($name);
51
        $this->manager = new Manager();
52
    }
53
54
    /**
55
     * @return Trainer
56
     */
57
    public function getManager()
58
    {
59
        return $this->manager;
60
    }
61
62
    /**
63
     * @param Trainer $manager
64
     *
65
     * @return $this
66
     */
67
    public function setManager($manager)
68
    {
69
        $this->manager = $manager;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return \DateTime
76
     */
77
    public function getCreatedAt()
78
    {
79
        return $this->createdAt;
80
    }
81
82
    /**
83
     * @param \DateTime $createdAt
84
     *
85
     * @return $this
86
     */
87
    public function setCreatedAt($createdAt)
88
    {
89
        $this->createdAt = $createdAt;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getPoints()
98
    {
99
        return $this->points;
100
    }
101
102
    /**
103
     * @param int $points
104
     *
105
     * @return $this
106
     */
107
    public function setPoints($points)
108
    {
109
        $this->points = $points;
110
111
        return $this;
112
    }
113
114
    /**
115
     * @return array|Player[]
116
     */
117
    public function getPlayers()
118
    {
119
        return $this->players;
120
    }
121
122
    /**
123
     * @param array|Player[] $players
124
     *
125
     * @return $this
126
     */
127
    public function setPlayers($players)
128
    {
129
        $this->players = $players;
130
131
        return $this;
132
    }
133
134
    /**
135
     * @return array
136
     */
137
    public function getScores()
138
    {
139
        return $this->scores;
140
    }
141
142
    /**
143
     * @param array $scores
144
     *
145
     * @return $this
146
     */
147
    public function setScores($scores)
148
    {
149
        $this->scores = $scores;
150
151
        return $this;
152
    }
153
}
154