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