1 | <?php |
||
25 | class QueryBuilderFilterSet implements QueryBuilderFilterSetInterface { |
||
26 | |||
27 | /** |
||
28 | * Filters. |
||
29 | * |
||
30 | * @var QueryBuilderFilterInterface[] |
||
31 | */ |
||
32 | private $filters; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | */ |
||
37 | public function __construct() { |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function addFilter(QueryBuilderFilterInterface $filter): QueryBuilderFilterSetInterface { |
||
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function getDecorator(string $id): ?QueryBuilderDecoratorInterface { |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getFilter(string $id): ?QueryBuilderFilterInterface { |
||
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | */ |
||
77 | public function getFilters(): array { |
||
80 | |||
81 | /** |
||
82 | * Serialize this instance. |
||
83 | * |
||
84 | * @return array Returns an array representing this instance. |
||
85 | */ |
||
86 | public function jsonSerialize(): array { |
||
89 | |||
90 | /** |
||
91 | * {@inheritDoc} |
||
92 | */ |
||
93 | public function removeFilter(QueryBuilderFilterInterface $filter): QueryBuilderFilterSetInterface { |
||
99 | |||
100 | /** |
||
101 | * Set the filters. |
||
102 | * |
||
103 | * @param QueryBuilderFilterInterface[] $filters The filters. |
||
104 | * @return QueryBuilderFilterSetInterface Returns this filter set. |
||
105 | */ |
||
106 | protected function setFilters(array $filters): QueryBuilderFilterSetInterface { |
||
110 | } |
||
111 |