| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | trait ClassMetadataTrait |
||
| 29 | { |
||
| 30 | use ClassInfoTrait; |
||
| 31 | |||
| 32 | private ?ManagerRegistry $registry; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @required |
||
| 36 | */ |
||
| 37 | 9 | protected function initRegistry(ManagerRegistry $registry): void |
|
| 40 | 9 | } |
|
| 41 | |||
| 42 | 7 | protected function getClassMetadata(object $data): ClassMetadata |
|
| 43 | { |
||
| 44 | 7 | return $this->getEntityManager($data)->getClassMetadata($this->getObjectClass($data)); |
|
|
|
|||
| 45 | } |
||
| 46 | |||
| 47 | 7 | private function getEntityManager(object $data): EntityManagerInterface |
|
| 59 | } |
||
| 60 | } |
||
| 61 |