1 | <?php |
||
26 | abstract class AbstractFilter implements FilterInterface { |
||
27 | |||
28 | /** |
||
29 | * Configuration of the filter instance. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | public $config; |
||
34 | |||
35 | /** |
||
36 | * Empty constructor provided because it is part of the interface. |
||
37 | * |
||
38 | * @param array $args |
||
39 | */ |
||
40 | public function __construct(array $args = array()) {} |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | abstract public function filter($input); |
||
46 | |||
47 | /** |
||
48 | * Factory method for concrete filters. |
||
49 | * |
||
50 | * @param string $name |
||
51 | * @param array $args |
||
52 | * |
||
53 | * @return FilterInterface |
||
54 | * |
||
55 | * @throws \DomainException |
||
56 | */ |
||
57 | 3 | public static function create($name, array &$args = array()) { |
|
67 | } |
||
68 |