| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | trait FilterTrait |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var Filter |
||
| 10 | */ |
||
| 11 | protected $filters; |
||
| 12 | |||
| 13 | protected function setFilter(Filter $filter) |
||
| 14 | { |
||
| 15 | $this->filters = $filter; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function filters(): Filter |
||
| 19 | { |
||
| 20 | return $this->filters ?? new Filter(); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function hasFilters(): bool |
||
| 26 | } |
||
| 27 | } |
||
| 28 |