| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class MapBuilder implements RelationDataMapper |
||
| 12 | { |
||
| 13 | private $manager; |
||
| 14 | |||
| 15 | private $map = []; |
||
| 16 | |||
| 17 | public function __construct(EntityManager $manager) |
||
| 18 | { |
||
| 19 | $this->manager = $manager; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getMap() : array |
||
| 23 | { |
||
| 24 | $this->rebuildRelationMap(); |
||
| 25 | |||
| 26 | return $this->map; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** @codeCoverageIgnore */ |
||
| 30 | public static function relations(ClassMetadata $classMetadata) |
||
| 43 | } |
||
| 44 | |||
| 45 | public function rebuildRelationMap() |
||
| 54 | // @codeCoverageIgnoreEnd |
||
| 55 | } |
||
| 58 |