| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.9765 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 29 | public function createDriver(array $metadataDirs, Reader $annotationReader) |
|
| 15 | { |
||
| 16 | 29 | if (!empty($metadataDirs)) { |
|
| 17 | $fileLocator = new FileLocator($metadataDirs); |
||
| 18 | |||
| 19 | return new DriverChain(array( |
||
| 20 | new YamlDriver($fileLocator), |
||
| 21 | new XmlDriver($fileLocator), |
||
| 22 | new AnnotationDriver($annotationReader), |
||
| 23 | )); |
||
| 24 | } |
||
| 25 | |||
| 26 | 29 | return new AnnotationDriver($annotationReader); |
|
| 27 | } |
||
| 28 | } |
||
| 29 |