Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
39 | 28 | final protected function getAnnotationReader(): Reader |
|
40 | { |
||
41 | 28 | $driver = $this->entityManager->getConfiguration()->getMetadataDriverImpl(); |
|
42 | 28 | if (!$driver instanceof AnnotationDriver) { |
|
43 | 1 | throw new Exception('graphql-doctrine requires Doctrine to be configured with a `' . AnnotationDriver::class . '`.'); |
|
44 | } |
||
45 | |||
46 | 27 | return $driver->getReader(); |
|
47 | } |
||
49 |