| 1 | <?php |
||
| 12 | class Util |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Bugfix for get monday of this week. |
||
| 16 | * |
||
| 17 | * @see https://bugs.php.net/bug.php?id=63740 |
||
| 18 | * |
||
| 19 | * @param \DateTime $date |
||
| 20 | * |
||
| 21 | * @return \DateTime |
||
| 22 | */ |
||
| 23 | 9 | public static function getMondayThisWeek(\DateTime $date) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @deprecated it will be removed in later. |
||
| 36 | * |
||
| 37 | * @see RoundDate::round() |
||
| 38 | * @codeCoverageIgnore |
||
| 39 | * |
||
| 40 | * @param \DateTime $date |
||
| 41 | * @param int $seconds |
||
| 42 | * |
||
| 43 | * @return \DateTime |
||
| 44 | */ |
||
| 45 | public static function roundDate(\DateTime $date, $seconds) |
||
| 49 | } |
||
| 50 |