| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | public function denormalize($data, $class, $format = null, array $context = []) |
|
| 26 | { |
||
| 27 | 1 | $serializer = new Serializer([$this->objectNormalizer, $this->arrayDenormalizer]); |
|
| 28 | 1 | $data['photos'] = $serializer->denormalize($data['photos'], PhotoSizeType::class . '[][]'); |
|
| 29 | |||
| 30 | 1 | return $serializer->denormalize($data, UserProfilePhotosType::class); |
|
| 31 | } |
||
| 38 |