Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | abstract class AbstractFilter implements ValidatorInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Gets the filter to use within the validation. |
||
22 | * See http://php.net/manual/de/filter.filters.validate.php . |
||
23 | * |
||
24 | * @return string - the filter to use |
||
25 | */ |
||
26 | abstract protected function getFilter(); |
||
27 | |||
28 | /** |
||
29 | * Gets the flags to use within the validation. |
||
30 | * See http://php.net/manual/de/filter.filters.validate.php . |
||
31 | * |
||
32 | * @return string|null - the flags to use |
||
33 | */ |
||
34 | 15 | protected function getFlags() |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 17 | public function isValid($value, array $parameters) |
|
48 |