1 | <?php |
||
20 | final class Month extends Integer implements DateTimeInterface |
||
21 | { |
||
22 | use DateTimeTrait; |
||
23 | |||
24 | /** |
||
25 | * @param integer $value |
||
26 | */ |
||
27 | 29 | public function __construct($value) |
|
31 | |||
32 | /** |
||
33 | * @return static |
||
34 | */ |
||
35 | 13 | public static function now() |
|
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 24 | public function __toString() |
|
47 | |||
48 | /** |
||
49 | * From String. |
||
50 | * |
||
51 | * @param $string |
||
52 | * @return static |
||
53 | */ |
||
54 | 1 | public static function fromString($string) |
|
60 | |||
61 | /** |
||
62 | * From Native |
||
63 | * |
||
64 | * @param \DateTime $native |
||
65 | * @return DateTimeInterface |
||
66 | */ |
||
67 | 2 | public static function fromNative(\DateTime $native) |
|
71 | |||
72 | /** |
||
73 | * @return int |
||
74 | */ |
||
75 | 1 | public function getMaximum() |
|
79 | |||
80 | /** |
||
81 | * @return int |
||
82 | */ |
||
83 | 1 | public function getMinimum() |
|
87 | |||
88 | } |
||
89 |