1 | <?php |
||
9 | class FilterManager implements FilterManagerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var FilterOptionsInterface |
||
13 | */ |
||
14 | protected $filterOptions; |
||
15 | |||
16 | /** |
||
17 | * @var ServiceLocatorInterface |
||
18 | */ |
||
19 | protected $filterLoaderPluginManager; |
||
20 | |||
21 | /** |
||
22 | * Constructor |
||
23 | * |
||
24 | * @param FilterOptionsInterface $filterOptions |
||
25 | * @param ServiceLocatorInterface $filterLoaderPluginManager |
||
26 | */ |
||
27 | 7 | public function __construct( |
|
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | 4 | public function getFilter($filter) |
|
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | 1 | public function getFilterOptions($filter) |
|
56 | |||
57 | /** |
||
58 | * Validates if filter exists and is valid |
||
59 | * |
||
60 | * @param string $filter Filter Service |
||
61 | * @throws Exception\FilterNotFoundException |
||
62 | * @throws Exception\InvalidArgumentException |
||
63 | * @return void |
||
64 | */ |
||
65 | 5 | protected function validateFilter($filter) |
|
84 | |||
85 | /** |
||
86 | * {@inheritDoc} |
||
87 | */ |
||
88 | 1 | public function applyFilter(ImageInterface $image, $filter) |
|
92 | |||
93 | /** |
||
94 | * {@inheritDoc} |
||
95 | */ |
||
96 | 1 | public function addFilter($name, array $options) |
|
102 | } |
||
103 |