Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class ReaderFactory |
||
14 | { |
||
15 | /** |
||
16 | * @param object<ReaderInterface|DoctrineReader>|null $reader |
||
17 | * |
||
18 | * @return ReaderInterface |
||
19 | * |
||
20 | * @psalm-type ReaderType = ReaderInterface | DoctrineAnnotationReader | null |
||
21 | * @psalm-param ReaderType $reader |
||
22 | */ |
||
23 | public static function create(object $reader = null): ReaderInterface |
||
50 |