| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 79.17% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class TextFilter extends AbstractFilter |
||
| 6 | { |
||
| 7 | protected $like = [ |
||
| 8 | 'left' => true, |
||
| 9 | 'right' => true, |
||
| 10 | ]; |
||
| 11 | |||
| 12 | 2 | public function like($left = true, $right = true) |
|
| 13 | { |
||
| 14 | 2 | $this->like = [ |
|
| 15 | 2 | 'left' => $left, |
|
| 16 | 2 | 'right' => $right, |
|
| 17 | ]; |
||
| 18 | |||
| 19 | 2 | return $this; |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function render() |
|
| 23 | { |
||
| 24 | 1 | return view('jarboe::crud.filters.text', [ |
|
| 25 | 1 | 'filter' => $this, |
|
| 26 | ]); |
||
| 27 | } |
||
| 28 | |||
| 29 | 2 | public function apply($query) |
|
| 55 | ); |
||
| 56 | 1 | } |
|
| 57 | } |
||
| 58 |