| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function apply(Builder $builder, $filters): Builder |
||
| 26 | { |
||
| 27 | if (is_null($filters)) { |
||
| 28 | return $builder; |
||
| 29 | } |
||
| 30 | |||
| 31 | foreach ($filters as $filter => $value) { |
||
| 32 | if ($this->filterExists($filter)) { |
||
| 33 | $builder = $this->applyFilterQuery($builder, $filter, $value); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return $builder; |
||
| 38 | } |
||
| 66 |