1 | <?php |
||
20 | final class Year extends Integer implements DateTimeInterface |
||
21 | { |
||
22 | use DateTimeTrait; |
||
23 | |||
24 | /** |
||
25 | * @param int $value |
||
26 | */ |
||
27 | 28 | public function __construct($value) |
|
32 | |||
33 | /*** |
||
34 | * @return bool |
||
35 | */ |
||
36 | 2 | public function isLeap() |
|
40 | |||
41 | /** |
||
42 | * Now. |
||
43 | * |
||
44 | * @return static |
||
45 | */ |
||
46 | 11 | public static function now() |
|
50 | |||
51 | /** |
||
52 | * From String. |
||
53 | * |
||
54 | * @param $string |
||
55 | * |
||
56 | * @return static |
||
57 | */ |
||
58 | 1 | public static function fromString($string) |
|
62 | |||
63 | /** |
||
64 | * From Native |
||
65 | * |
||
66 | * @param \DateTime $native |
||
67 | * @return DateTimeInterface |
||
68 | */ |
||
69 | 1 | public static function fromNative(\DateTime $native) |
|
73 | } |
||
74 |