Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class QueryPart |
||
6 | { |
||
7 | protected $field; |
||
8 | protected $precision; |
||
9 | protected $value; |
||
10 | protected $conjugation = 'AND'; |
||
11 | |||
12 | protected $aliases = [ |
||
13 | '=' => 'exact', |
||
14 | '~' => 'contains', |
||
15 | '^' => 'begins with', |
||
16 | ]; |
||
17 | |||
18 | public function __construct($field, $precision, $value, $conjugation = 'AND') |
||
24 | } |
||
25 | |||
26 | public function setOperator($conjugation) |
||
27 | { |
||
28 | $this->conjugation = $conjugation; |
||
29 | } |
||
30 | |||
31 | public function build() |
||
34 | } |
||
35 | } |
||
36 |