| 1 | <?php |
||
| 11 | class Season extends BaseNameEntity |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $year; |
||
| 17 | |||
| 18 | 2 | public function __construct(string $name, int $year) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return int |
||
| 27 | */ |
||
| 28 | 2 | public function getYear(): ?int |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param int $year |
||
| 35 | * |
||
| 36 | * @return Season |
||
| 37 | */ |
||
| 38 | 1 | public function setYear(int $year): Season |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | 1 | public function jsonSerialize(): array |
|
| 55 | } |