1 | <?php |
||
15 | class Team extends AbstractTeam |
||
16 | { |
||
17 | /** |
||
18 | * @var Trainer |
||
19 | */ |
||
20 | protected $manager; |
||
21 | |||
22 | /** |
||
23 | * @var \DateTime |
||
24 | */ |
||
25 | protected $createdAt; |
||
26 | |||
27 | /** |
||
28 | * @var integer |
||
29 | */ |
||
30 | protected $points; |
||
31 | |||
32 | /** |
||
33 | * @var array|Player[]|[] |
||
34 | */ |
||
35 | protected $players; |
||
36 | |||
37 | /** |
||
38 | * @var array|integer[] |
||
39 | */ |
||
40 | protected $scores; |
||
41 | |||
42 | /** |
||
43 | * AbstractTeam constructor. |
||
44 | * |
||
45 | * @param string $name |
||
46 | */ |
||
47 | public function __construct($name = null) |
||
52 | |||
53 | /** |
||
54 | * @return Trainer |
||
55 | */ |
||
56 | public function getManager() |
||
60 | |||
61 | /** |
||
62 | * @param Trainer $manager |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setManager($manager) |
||
72 | |||
73 | /** |
||
74 | * @return \DateTime |
||
75 | */ |
||
76 | public function getCreatedAt() |
||
80 | |||
81 | /** |
||
82 | * @param \DateTime $createdAt |
||
83 | * |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setCreatedAt($createdAt) |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getPoints() |
||
100 | |||
101 | /** |
||
102 | * @param int $points |
||
103 | * |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setPoints($points) |
||
112 | |||
113 | /** |
||
114 | * @return array|Player[] |
||
115 | */ |
||
116 | public function getPlayers() |
||
120 | |||
121 | /** |
||
122 | * @param array|Player[] $players |
||
123 | * |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setPlayers($players) |
||
132 | |||
133 | /** |
||
134 | * @return array |
||
135 | */ |
||
136 | public function getScores() |
||
140 | |||
141 | /** |
||
142 | * @param array $scores |
||
143 | * |
||
144 | * @return $this |
||
145 | */ |
||
146 | public function setScores($scores) |
||
152 | } |