Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 2 | public function getAll() : array |
|
25 | { |
||
26 | 2 | $opList = []; |
|
27 | |||
28 | 2 | foreach ($this->metadata->justEntitiesMetadata() as $entityClass) { |
|
29 | 2 | $fields = $this->metadata->extractFields($entityClass); |
|
30 | |||
31 | 2 | $entity = StringParser::dotNotationFor($entityClass); |
|
32 | 2 | $opList[$entity]['fields'] = $fields; |
|
33 | |||
34 | 2 | if ($this->metadata->hasRelations()) { |
|
35 | 2 | $relations = $this->metadata->getRelations(); |
|
36 | 2 | $opList[$entity]['relations'][] = $relations; |
|
37 | } |
||
38 | } |
||
39 | |||
40 | 2 | return $opList; |
|
41 | } |
||
62 |