| 1 | <?php |
||
| 16 | class FilterConfiguration |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $filters = []; |
||
| 22 | |||
| 23 | public function __construct(array $filters = []) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Gets a previously configured filter. |
||
| 30 | * |
||
| 31 | * @param string $filter |
||
| 32 | * |
||
| 33 | * @throws NonExistingFilterException |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function get($filter) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Sets a configuration on the given filter. |
||
| 48 | * |
||
| 49 | * @param string $filter |
||
| 50 | */ |
||
| 51 | public function set($filter, array $config) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get all filters. |
||
| 58 | * |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | public function all() |
||
| 65 | } |
||
| 66 |