Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | namespace Apie\StorageMetadata\Interfaces; |
3 | |
4 | use ReflectionClass; |
5 | |
6 | interface ClassInstantiatorInterface |
7 | { |
8 | /** |
9 | * @param ReflectionClass<object> $class |
10 | */ |
11 | public function supports(ReflectionClass $class, ?StorageDtoInterface $storageObject = null): bool; |
12 | |
13 | /** |
14 | * @template T of object |
15 | * @param ReflectionClass<T> $class |
16 | * @return T |
17 | */ |
18 | public function create(ReflectionClass $class, ?StorageDtoInterface $storageObject = null): object; |
19 | } |