| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class ScalarNormalizer implements Normalizer |
||
| 19 | { |
||
| 20 | private const SUPPORTED_TYPES = ['integer', 'int', 'double', 'float', 'boolean', 'bool', 'string', 'null', 'NULL']; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | 5 | public function normalize($value, string $format, array $context = []) { |
|
| 26 | 5 | return $value; |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | 4 | public function denormalize($data, Type $type, string $format, array $context = []) { |
|
| 34 | } |
||
| 35 | |||
| 36 | 9 | public function canProcess(Type $type, string $format): bool { |
|
| 40 |