Total Complexity | 9 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Operators |
||
7 | { |
||
8 | protected static $map = [ |
||
9 | 'lt' => '<', |
||
10 | 'lte' => '<=', |
||
11 | 'less_than' => '<', |
||
12 | 'less_or_equal' => '<=', |
||
13 | 'gte' => '>=', |
||
14 | 'gt' => '>', |
||
15 | 'greater_or_equal' => '>=', |
||
16 | 'greater_than' => '>=', |
||
17 | 'starts_with' => 'LIKE', |
||
18 | 'ends_with' => 'LIKE', |
||
19 | 'contains' => 'LIKE', |
||
20 | ]; |
||
21 | |||
22 | public static function getOperatorAndValue($operator, $value) |
||
46 |