Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| MixedStorageToObject | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| convert | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\StorageMetadata\Converters; |
| 3 | |
| 4 | use Apie\StorageMetadataBuilder\Interfaces\MixedStorageInterface; |
| 5 | use Apie\TypeConverter\ConverterInterface; |
| 6 | |
| 7 | /** |
| 8 | * @implements ConverterInterface<MixedStorageInterface|null, mixed> |
| 9 | */ |
| 10 | class MixedStorageToObject implements ConverterInterface |
| 11 | { |
| 12 | public function convert(?MixedStorageInterface $input): mixed |
| 13 | { |
| 14 | return $input?->toOriginalObject(); |
| 15 | } |
| 16 | } |