| 1 | <?php |
||
| 12 | class WeekDays extends Days |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param DateTime|null |
||
| 16 | * @return DateTime |
||
| 17 | */ |
||
| 18 | 4 | public function toDateTime(DateTime $start = null) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 3 | public function humanize() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Workaround for PHP 5.4 bug https://bugs.php.net/bug.php?id=63521 |
||
| 33 | * Ensure weekdays are correctly used despite the bug in PHP 5.4 |
||
| 34 | * which might result in Sunday instead of Friday. |
||
| 35 | * |
||
| 36 | * @param DateTime $date |
||
| 37 | * @return DateTime |
||
| 38 | */ |
||
| 39 | public static function ensureWeekdays(DateTime $date) |
||
| 51 | } |
||
| 52 |