1 | <?php |
||
14 | abstract class FilterRule |
||
15 | { |
||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | protected $encodingFormat; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $allowNotSet = false; |
||
25 | |||
26 | /** |
||
27 | * @param string|null $encodingFormat |
||
28 | */ |
||
29 | 147 | public function setEncodingFormat($encodingFormat) |
|
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | 10 | public function allowedNotSet() |
|
38 | { |
||
39 | 10 | return $this->allowNotSet; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param mixed $value |
||
44 | * @return mixed |
||
45 | */ |
||
46 | abstract public function filter($value); |
||
47 | } |
||
48 |