| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class DateTime extends Expression implements ValueInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | use DateTimeTrait; |
||
|
|
|||
| 16 | use FactoryFormatTrait; |
||
| 17 | use StrCastTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * An expression for the current date and time. |
||
| 21 | * |
||
| 22 | * @param DB $db |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | public static function now(DB $db) |
||
| 30 | ]); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * An expression for the current date. |
||
| 35 | * |
||
| 36 | * @param DB $db |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | public static function today(DB $db) |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * An expression for tomorrow's date. |
||
| 49 | * |
||
| 50 | * @param DB $db |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | public static function tomorrow(DB $db) |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * An expression for yesterday's date. |
||
| 60 | * |
||
| 61 | * @param DB $db |
||
| 62 | * @return static |
||
| 63 | */ |
||
| 64 | public static function yesterday(DB $db) |
||
| 69 |