| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 10 | public function deserialize(string $class, $data): object |
|
| 33 | { |
||
| 34 | try { |
||
| 35 | 10 | return $this->serializer->deserialize( |
|
| 36 | 10 | $data, |
|
| 37 | 10 | $class, |
|
| 38 | 10 | 'json', |
|
| 39 | 10 | ['disable_type_enforcement' => true] |
|
| 40 | ); |
||
| 41 | 2 | } catch (\Throwable $throwable) { |
|
| 42 | 2 | throw IsmpSerializerErrorException::becauseOfError($throwable); |
|
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |