1 | <?php |
||
14 | class FilterBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $mapping = []; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $isDebug = true; |
||
25 | |||
26 | /** |
||
27 | * @var EventDispatcherInterface |
||
28 | */ |
||
29 | protected $eventDispatcher; |
||
30 | |||
31 | /** |
||
32 | * FilterBuilder constructor. |
||
33 | * |
||
34 | * @param EventDispatcherInterface $eventDispatcher |
||
35 | */ |
||
36 | public function __construct(EventDispatcherInterface $eventDispatcher) |
||
46 | |||
47 | /** |
||
48 | * Build the filter with the given configuration. |
||
49 | * |
||
50 | * @param array $filterConfigurations |
||
51 | * @return FilterInterface[] |
||
52 | * @throws Exception |
||
53 | */ |
||
54 | public function build(array $filterConfigurations) |
||
87 | |||
88 | /** |
||
89 | * Return filter configuration instance using the configured mapping. |
||
90 | * |
||
91 | * @param $filter |
||
92 | * @return ConfigurationInterface |
||
93 | * @throws Exception |
||
94 | */ |
||
95 | protected function getFilterConfiguration($filter) |
||
113 | } |
||
114 |