| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | public function __invoke(string $json): CreateShipmentResponse |
|
| 23 | { |
||
| 24 | 2 | $serializer = Serializer\SerializerBuilder::create() |
|
| 25 | 2 | ->setPropertyNamingStrategy( |
|
| 26 | 2 | new Serializer\Naming\SerializedNameAnnotationStrategy( |
|
| 27 | 2 | new Serializer\Naming\IdenticalPropertyNamingStrategy() |
|
| 28 | 2 | ) |
|
| 29 | 2 | ) |
|
| 30 | 2 | ->build(); |
|
| 31 | |||
| 32 | 2 | return $serializer->deserialize($json, CreateShipmentResponse::class, 'json'); |
|
| 33 | } |
||
| 35 |