| 1 | <?php |
||
| 20 | final class Second extends Integer implements DateTimeInterface |
||
| 21 | { |
||
| 22 | use DateTimeTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param integer $value |
||
| 26 | */ |
||
| 27 | 22 | public function __construct($value) |
|
| 31 | |||
| 32 | 10 | public static function now() |
|
| 36 | |||
| 37 | 12 | public function __toString() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * From String. |
||
| 44 | * |
||
| 45 | * @param $string |
||
| 46 | * @return static |
||
| 47 | */ |
||
| 48 | 1 | public static function fromString($string) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * From Native |
||
| 55 | * |
||
| 56 | * @param \DateTime $native |
||
| 57 | * @return DateTimeInterface |
||
| 58 | */ |
||
| 59 | 1 | public static function fromNative(\DateTime $native) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return int |
||
| 66 | */ |
||
| 67 | 1 | public function getMaximum() |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @return int |
||
| 74 | */ |
||
| 75 | 1 | public function getMinimum() |
|
| 79 | |||
| 80 | } |
||
| 81 |