| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class Year |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | private $value; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param int $value |
||
| 14 | */ |
||
| 15 | public function __construct(int $value) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function toNative(): int |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Year $year |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function equals(Year $year): bool |
||
| 43 |