| Total Complexity | 7 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class CurrentMetaData |
||
| 10 | { |
||
| 11 | private $metadata; |
||
| 12 | |||
| 13 | private $manager; |
||
| 14 | |||
| 15 | private $currentMetadata; |
||
| 16 | |||
| 17 | 2 | private function __construct(EntityManagerInterface $manager) |
|
| 18 | { |
||
| 19 | 2 | $this->manager = $manager; |
|
| 20 | |||
| 21 | 2 | $metadata = $this->manager |
|
| 22 | 2 | ->getMetaDataFactory() |
|
| 23 | 2 | ->getAllMetaData(); |
|
| 24 | |||
| 25 | 2 | $this->metadata = $metadata; |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | 2 | public static function fromEntityManager(EntityManagerInterface $manager) : CurrentMetaData |
|
| 29 | { |
||
| 30 | 2 | return new self($manager); |
|
| 31 | } |
||
| 32 | |||
| 33 | public function justEntitiesMetadata() : array |
||
| 38 | } |
||
| 39 | |||
| 40 | 2 | public function extractFields($entityClass) : array |
|
| 47 | } |
||
| 48 | |||
| 49 | 2 | public function haveRelations() : bool |
|
| 52 | } |
||
| 53 | |||
| 54 | 2 | public function getRelations() : array |
|
| 65 | } |
||
| 66 | } |
||
| 67 |