Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 2 | public function getOpList($entityPath) : array |
|
20 | { |
||
21 | 2 | $opList = []; |
|
22 | |||
23 | 2 | foreach ($this->metadata->justEntitiesMetadata() as $entityClass) { |
|
24 | 2 | $fields = $this->metadata->extractFields($entityClass); |
|
25 | |||
26 | 2 | $entity = StringParser::dotNotationFor($entityClass); |
|
27 | 2 | $opList[$entity]['fields'] = $fields; |
|
28 | |||
29 | 2 | if ($this->metadata->haveRelations()) { |
|
30 | 2 | $relations = $this->metadata->getRelations(); |
|
31 | 2 | $opList[$entity]['relations'][] = $relations; |
|
32 | } |
||
33 | } |
||
34 | |||
35 | 2 | return $opList[$entityPath]; |
|
36 | } |
||
43 |