| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | abstract class AbstractFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Types |
||
| 22 | */ |
||
| 23 | protected $types; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var EntityManager |
||
| 27 | */ |
||
| 28 | protected $entityManager; |
||
| 29 | |||
| 30 | 92 | public function __construct(Types $types, EntityManager $entityManager) |
|
| 31 | { |
||
| 32 | 92 | $this->types = $types; |
|
| 33 | 92 | $this->entityManager = $entityManager; |
|
| 34 | 92 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get annotation reader |
||
| 38 | * |
||
| 39 | * @return Reader |
||
| 40 | * @throws Exception |
||
| 41 | * @throws \Doctrine\ORM\ORMException |
||
| 42 | */ |
||
| 43 | 37 | final protected function getAnnotationReader(): Reader |
|
| 52 | } |
||
| 53 | } |
||
| 55 |