1 | <?php |
||
20 | final class Minute extends Integer implements DateTimeInterface |
||
21 | { |
||
22 | use DateTimeTrait; |
||
23 | |||
24 | /** |
||
25 | * @param integer $value |
||
26 | */ |
||
27 | 22 | public function __construct($value) |
|
31 | |||
32 | /** |
||
33 | * @return static |
||
34 | */ |
||
35 | 17 | public function getSeconds() |
|
39 | |||
40 | /** |
||
41 | * @return static |
||
42 | */ |
||
43 | 10 | public static function now() |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 12 | public function __toString() |
|
55 | |||
56 | /** |
||
57 | * From String. |
||
58 | * |
||
59 | * @param $string |
||
60 | * |
||
61 | * @return static |
||
62 | */ |
||
63 | 1 | public static function fromString($string) |
|
67 | |||
68 | /** |
||
69 | * From Native |
||
70 | * |
||
71 | * @param \DateTime $native |
||
72 | * @return DateTimeInterface |
||
73 | */ |
||
74 | 1 | public static function fromNative(\DateTime $native) |
|
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | */ |
||
82 | 1 | public function getMaximum() |
|
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | 1 | public function getMinimum() |
|
94 | } |
||
95 |