| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.9765 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 32 | public function createDriver(array $metadataDirs, Reader $annotationReader) |
|
| 24 | { |
||
| 25 | 32 | if (!empty($metadataDirs)) { |
|
| 26 | $fileLocator = new FileLocator($metadataDirs); |
||
| 27 | |||
| 28 | return new DriverChain(array( |
||
| 29 | new YamlDriver($fileLocator, $this->typeParser), |
||
| 30 | new XmlDriver($fileLocator, $this->typeParser), |
||
| 31 | new AnnotationDriver($annotationReader, $this->typeParser), |
||
| 32 | )); |
||
| 33 | } |
||
| 34 | |||
| 35 | 32 | return new AnnotationDriver($annotationReader, $this->typeParser); |
|
| 36 | } |
||
| 37 | } |
||
| 38 |