Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function where($column, $operator = null, $value = null, $type = null, $relation = null, $level = 2) |
||
12 | { |
||
13 | if (func_num_args() == 2 || is_null($value)) { |
||
14 | $value = $operator; |
||
15 | $operator = '='; |
||
16 | } |
||
17 | |||
18 | $this->setQuery(compact( |
||
19 | 'column', |
||
20 | 'value', |
||
21 | 'operator', |
||
22 | 'type', |
||
23 | 'level' |
||
24 | )); |
||
25 | |||
26 | if (!empty($relation)) { |
||
27 | $this->setRelation($relation); |
||
28 | } |
||
29 | |||
30 | return $this; |
||
31 | } |
||
77 |