| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | class FilterCollection |
||
| 29 | { |
||
| 30 | use CollectionTrait; |
||
| 31 | |||
| 32 | protected function describeItem(): string |
||
| 33 | { |
||
| 34 | return 'Filter'; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function addFilter(FilterInterface $filter): void |
||
| 38 | { |
||
| 39 | $this->addItem($filter->getName(), $filter); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getFilter(string $name): FilterInterface |
||
| 43 | { |
||
| 44 | return $this->getItem($name); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getNegatedFilter(string $name): FilterInterface |
||
| 50 | } |
||
| 51 | } |
||
| 52 |