Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 6874 | public function getRelationMap(string $entity): RelationMap |
|
29 | { |
||
30 | 6874 | if (isset($this->relMaps[$entity])) { |
|
31 | 5396 | return $this->relMaps[$entity]; |
|
32 | } |
||
33 | 6874 | if ($this->orm === null) { |
|
34 | throw new ORMException('Relation Map is not prepared.'); |
||
35 | } |
||
36 | |||
37 | 6874 | return $this->relMaps[$entity] = RelationMap::build($this->orm, $entity); |
|
38 | } |
||
51 |