| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class EntityIdNormalizer implements DenormalizerInterface |
||
| 10 | { |
||
| 11 | private $className; |
||
| 12 | |||
| 13 | public function __construct(string $className) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function denormalize($data, $class, $format = null, array $context = []) |
||
| 19 | { |
||
| 20 | return call_user_func([$this->className, 'fromString'], $data); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function supportsDenormalization($data, $type, $format = null): bool |
||
| 26 | } |
||
| 27 | } |
||
| 28 |