1 | <?php |
||
20 | final class Week extends Integer implements DateTimeInterface |
||
21 | { |
||
22 | use DateTimeTrait; |
||
23 | |||
24 | /** |
||
25 | * @param integer $value |
||
26 | */ |
||
27 | 6 | public function __construct($value) |
|
31 | |||
32 | /** |
||
33 | * @return static |
||
34 | */ |
||
35 | 3 | public static function now() |
|
39 | |||
40 | /** |
||
41 | * From String. |
||
42 | * |
||
43 | * @param $string |
||
44 | * @return static |
||
45 | */ |
||
46 | 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 |