| 1 | <?php |
||
| 9 | class Month implements Period |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | private $month; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | private $year; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $daysInMonth; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $date |
||
| 28 | */ |
||
| 29 | public function __construct($date) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getStartDate() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getEndDate() |
||
| 49 | |||
| 50 | public function next() |
||
| 55 | |||
| 56 | public function previous() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | public function getNumberOfDays() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $timestamp |
||
| 75 | */ |
||
| 76 | private function setFromTimestamp($timestamp) |
||
| 82 | } |
||
| 83 |