| 1 | <?php |
||
| 10 | class GameDate |
||
| 11 | {
|
||
| 12 | const WEEKS_PER_SEASON = 34; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | * |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\GeneratedValue |
||
| 19 | * @ORM\Column(type="integer") |
||
| 20 | */ |
||
| 21 | private $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | * |
||
| 26 | * @ORM\Column(type="integer") |
||
| 27 | */ |
||
| 28 | private $week = 1; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | * |
||
| 33 | * @ORM\Column(type="integer") |
||
| 34 | */ |
||
| 35 | private $season = 1; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 5 | public function getSeason() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | 5 | public function getWeek() |
|
| 52 | |||
| 53 | 1 | public function incrementWeek() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param int $weeks |
||
| 60 | */ |
||
| 61 | 4 | public function addWeeks($weeks) |
|
| 66 | |||
| 67 | 4 | private function purge() |
|
| 74 | } |
||
| 75 |