| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 483 | public static function create(DoctrineReader|ReaderInterface $reader = null): ReaderInterface |
|
| 16 | { |
||
| 17 | return match (true) { |
||
| 18 | 483 | $reader instanceof ReaderInterface => $reader, |
|
| 19 | 10 | $reader instanceof DoctrineReader => new AnnotationReader($reader), |
|
|
|
|||
| 20 | 5 | $reader === null => new SelectiveReader([ |
|
| 21 | 5 | new AttributeReader(), |
|
| 22 | 483 | new AnnotationReader(), |
|
| 23 | ]), |
||
| 27 |