| 1 | <?php |
||
| 8 | class Year extends DateRange |
||
| 9 | { |
||
| 10 | 3 | public function __construct(?string $date_string = null) |
|
| 22 | |||
| 23 | 1 | public static function fromYear($year): Year |
|
| 27 | |||
| 28 | /** |
||
| 29 | * It's unnecessary defining this method. It's here only to allow IDE type hinting. |
||
| 30 | * |
||
| 31 | * @return Month |
||
| 32 | */ |
||
| 33 | 1 | public function current() |
|
| 37 | } |
||
| 38 |