| 1 | <?php |
||
| 12 | class Team |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $name; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \DateTime |
||
| 21 | */ |
||
| 22 | protected $createdAt; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var integer |
||
| 26 | */ |
||
| 27 | protected $points; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array|Player[] |
||
| 31 | */ |
||
| 32 | protected $players; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | protected $scores; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getName() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $name |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | public function setName($name) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return \DateTime |
||
| 61 | */ |
||
| 62 | public function getCreatedAt() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param \DateTime $createdAt |
||
| 69 | * |
||
| 70 | * @return $this |
||
| 71 | */ |
||
| 72 | public function setCreatedAt($createdAt) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return int |
||
| 81 | */ |
||
| 82 | public function getPoints() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param int $points |
||
| 89 | * |
||
| 90 | * @return $this |
||
| 91 | */ |
||
| 92 | public function setPoints($points) |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @return array|Player[] |
||
| 101 | */ |
||
| 102 | public function getPlayers() |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @param array|Player[] $players |
||
| 109 | * |
||
| 110 | * @return $this |
||
| 111 | */ |
||
| 112 | public function setPlayers($players) |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @return array |
||
| 121 | */ |
||
| 122 | public function getScores() |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @param array $scores |
||
| 129 | * |
||
| 130 | * @return $this |
||
| 131 | */ |
||
| 132 | public function setScores($scores) |
||
| 138 | } |