Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | class Clause |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $clauses = [ |
||
14 | 'where' => [], |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * @param mixed ...$args |
||
19 | * |
||
20 | * @return $this |
||
21 | */ |
||
22 | 2 | public function where(...$args) |
|
23 | { |
||
24 | 2 | array_push($this->clauses['where'], $args); |
|
25 | |||
26 | 2 | return $this; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param mixed $payload |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | 8 | public function intercepted($payload) |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param mixed $payload |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | 8 | protected function interceptWhereClause($payload) |
|
54 | } |
||
55 | } |
||
56 |