| Total Complexity | 3 | 
| Total Lines | 20 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1);  | 
            ||
| 10 | class AnswerDenormalizer implements DenormalizerInterface  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @inheritdoc  | 
            ||
| 14 | */  | 
            ||
| 15 | public function denormalize($data, $class, $format = null, array $context = []): Answer  | 
            ||
| 16 |     { | 
            ||
| 17 | return new Answer(  | 
            ||
| 18 | Uuid::fromString($data['id']),  | 
            ||
| 19 | new NotEmptyString($data['text']),  | 
            ||
| 20 | (bool) $data['correct']  | 
            ||
| 21 | );  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @inheritdoc  | 
            ||
| 26 | */  | 
            ||
| 27 | public function supportsDenormalization($data, $type, $format = null): bool  | 
            ||
| 30 | }  | 
            ||
| 31 | }  | 
            ||
| 32 |