| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class JsonSerializableToArrayConverter implements ConverterInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param \JsonSerializable $value |
||
| 19 | * |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | 1 | public function convert($value) |
|
| 23 | { |
||
| 24 | 1 | return $value->jsonSerialize(); |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function supports($value): bool |
|
| 28 | { |
||
| 29 | 1 | return $value instanceof \JsonSerializable; |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getType(): string |
|
| 33 | { |
||
| 34 | 1 | return 'array'; |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function getPriority(): int |
|
| 40 | } |
||
| 41 | } |
||
| 42 |