| 1 | <?php |
||
| 20 | final class Year extends Integer implements DateTimeInterface |
||
| 21 | { |
||
| 22 | use DateTimeTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param integer $value |
||
| 26 | */ |
||
| 27 | 5 | public function __construct($value) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return static |
||
| 34 | */ |
||
| 35 | 1 | public static function now() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * From Native |
||
| 42 | * |
||
| 43 | * @param \DateTime $native |
||
| 44 | * @return DateTimeInterface |
||
| 45 | */ |
||
| 46 | 1 | public static function fromNative(\DateTime $native) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * From String. |
||
| 53 | * |
||
| 54 | * @param $string |
||
| 55 | * @return static |
||
| 56 | */ |
||
| 57 | 1 | public static function fromString($string) |
|
| 61 | } |
||
| 62 |