Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
5 | abstract class AbstractNormalizer implements NormalizerInterface |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | */ |
||
10 | final public function normalize($value, string $operator) |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param mixed $value |
||
21 | * @param string $operator |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | abstract protected function process($value, string $operator); |
||
26 | |||
27 | /** |
||
28 | * @param mixed $value |
||
29 | * @param string $operator |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | abstract protected function supportsNormalization($value, string $operator): bool; |
||
34 | } |
||
35 |