1 | <?php |
||
23 | trait DateTimeTrait |
||
24 | { |
||
25 | /** |
||
26 | * @param string $functionName |
||
27 | * @param FunctionCallContext|null $context |
||
28 | * |
||
29 | * @return ExprBuilder |
||
30 | */ |
||
31 | abstract public function func($functionName, FunctionCallContext $context = null); |
||
32 | |||
33 | /** |
||
34 | * @return ExpressionInterface |
||
35 | */ |
||
36 | abstract public function getWrappedExpression(); |
||
37 | |||
38 | /** |
||
39 | * @param mixed $expression |
||
40 | * |
||
41 | * @return ExprBuilder |
||
42 | */ |
||
43 | public function addDate($expression) |
||
50 | |||
51 | /** |
||
52 | * @param mixed $expression |
||
53 | * |
||
54 | * @return ExprBuilder |
||
55 | */ |
||
56 | public function addTime($expression) |
||
63 | |||
64 | /** |
||
65 | * @return ExprBuilder |
||
66 | */ |
||
67 | 1 | public function year() |
|
71 | } |