1 | <?php |
||
10 | class Second extends PeriodAbstract |
||
11 | { |
||
12 | /** |
||
13 | * Returns the period as a DatePeriod. |
||
14 | * |
||
15 | * @return \DatePeriod |
||
16 | */ |
||
17 | public function getDatePeriod() |
||
21 | |||
22 | /** |
||
23 | * @param \DateTime $start |
||
24 | * |
||
25 | * @return bool |
||
26 | */ |
||
27 | public static function isValid(\DateTime $start) |
||
31 | |||
32 | /** |
||
33 | * Returns the second. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function __toString() |
||
41 | |||
42 | /** |
||
43 | * Returns a \DateInterval equivalent to the period. |
||
44 | * |
||
45 | * @return \DateInterval |
||
46 | */ |
||
47 | public static function getDateInterval() |
||
51 | } |
||
52 |