| 1 | <?php namespace BestServedCold\PhalueObjects\DateTime\Unit; |
||
| 16 | trait DayTrait |
||
| 17 | { |
||
| 18 | use DateTimeTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | 1 | public function isBeforeToday() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | 1 | public function isBeforeOrIsToday() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | 1 | public function isAfterToday() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | 1 | public function isAfterOrIsToday() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return static |
||
| 54 | */ |
||
| 55 | 1 | public static function tomorrow() |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return static |
||
| 62 | */ |
||
| 63 | 1 | public static function yesterday() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return static |
||
| 70 | */ |
||
| 71 | 1 | public function nextDay() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @return static |
||
| 78 | */ |
||
| 79 | 1 | public function previousDay() |
|
| 83 | |||
| 84 | /** |
||
| 85 | * @return static |
||
| 86 | */ |
||
| 87 | 4 | public function addDay($days) |
|
| 91 | } |
||
| 92 |