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