Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Num extends Expression implements ValueInterface |
||
13 | { |
||
14 | |||
15 | use NumTrait; |
||
16 | use FactoryFormatTrait; |
||
17 | use StrCastTrait; |
||
18 | |||
19 | /** |
||
20 | * `PI()` |
||
21 | * |
||
22 | * @param DB $db |
||
23 | * @return static |
||
24 | */ |
||
25 | public static function pi(DB $db) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * `RAND()` float between `0` and `1` |
||
32 | * |
||
33 | * @param DB $db |
||
34 | * @return static |
||
35 | */ |
||
36 | public static function rand(DB $db) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@link DateTime} from a Unix timestamp. |
||
43 | * |
||
44 | * The expression must be a non-negative integer. |
||
45 | * |
||
46 | * @return DateTime |
||
47 | */ |
||
48 | public function toDateTime() |
||
56 |