Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
25 | class UuidNormalizer implements DenormalizerInterface |
||
26 | { |
||
27 | private BaseUuidNormalizer $decorated; |
||
28 | |||
29 | public function __construct(BaseUuidNormalizer $decorated) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function denormalize($data, $class, $format = null, array $context = []) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function supportsDenormalization($data, $type, $format = null) |
||
54 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: