1 | <?php |
||
25 | trait ComparisionTrait |
||
26 | { |
||
27 | /** |
||
28 | * @param $connector |
||
29 | * @param $expression |
||
30 | * |
||
31 | * @return ExprBuilder |
||
32 | */ |
||
33 | abstract public function conjunction($connector, $expression); |
||
34 | |||
35 | /** |
||
36 | * @return ExpressionInterface |
||
37 | */ |
||
38 | abstract public function getWrappedExpression(); |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @param mixed $from |
||
43 | * @param mixed $to |
||
44 | * |
||
45 | * @return ExprBuilder |
||
46 | */ |
||
47 | 1 | public function between($from, $to) |
|
54 | |||
55 | /** |
||
56 | * @param mixed $expression |
||
57 | * |
||
58 | * @return ExprBuilder |
||
59 | */ |
||
60 | 1 | public function eq($expression) |
|
66 | |||
67 | /** |
||
68 | * @param mixed $expression |
||
69 | * |
||
70 | * @return ExprBuilder |
||
71 | */ |
||
72 | 1 | public function gt($expression) |
|
78 | |||
79 | /** |
||
80 | * @param mixed $expression |
||
81 | * |
||
82 | * @return ExprBuilder |
||
83 | */ |
||
84 | public function gte($expression) |
||
90 | |||
91 | /** |
||
92 | * @return ExprBuilder |
||
93 | */ |
||
94 | public function isNull() |
||
98 | |||
99 | /** |
||
100 | * @param mixed $expression |
||
101 | * |
||
102 | * @return ExprBuilder |
||
103 | */ |
||
104 | public function lt($expression) |
||
110 | |||
111 | /** |
||
112 | * @param mixed $expression |
||
113 | * |
||
114 | * @return ExprBuilder |
||
115 | */ |
||
116 | public function lte($expression) |
||
122 | |||
123 | /** |
||
124 | * @param mixed $expression |
||
125 | * |
||
126 | * @return ExprBuilder |
||
127 | */ |
||
128 | public function neq($expression) |
||
134 | |||
135 | /** |
||
136 | * @param mixed $from |
||
137 | * @param mixed $to |
||
138 | * |
||
139 | * @return ExprBuilder |
||
140 | */ |
||
141 | 1 | public function notBetween($from, $to) |
|
148 | |||
149 | /** |
||
150 | * @param mixed $expression |
||
151 | * |
||
152 | * @return ExprBuilder |
||
153 | */ |
||
154 | public function nullEq($expression) |
||
160 | } |