Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class MapBuilder implements RelationDatamapper |
||
9 | { |
||
10 | private $manager; |
||
11 | |||
12 | private $map = []; |
||
13 | |||
14 | public function __construct(EntityManager $manager) |
||
15 | { |
||
16 | $this->manager = $manager; |
||
17 | } |
||
18 | |||
19 | public function getMap() : array |
||
20 | { |
||
21 | $this->rebuildRelationMap(); |
||
22 | |||
23 | return $this->map; |
||
24 | } |
||
25 | |||
26 | public static function relations(ClassMetadata $classMetadata) |
||
39 | } |
||
40 | |||
41 | public function rebuildRelationMap() |
||
49 | } |
||
50 | } |
||
52 |