Total Complexity | 5 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
5 | final class IntegerNormalizer extends AbstractNormalizer |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | */ |
||
10 | protected function process($value, string $operator): int |
||
11 | { |
||
12 | return \intval($value); |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | protected function supportsNormalization($value, string $operator): bool |
||
21 | } |
||
22 | } |
||
23 |