Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
48 | 1 | public function getFieldsType($entityPath) : array |
|
49 | { |
||
50 | 1 | $fieldTypes = []; |
|
51 | |||
52 | 1 | foreach ($this->metadata->justEntitiesMetadata() as $entityClass) { |
|
53 | 1 | $fields = $this->metadata->extractFieldsType($entityClass); |
|
54 | |||
55 | 1 | $entity = StringParser::dotNotationFor($entityClass); |
|
56 | 1 | $fieldTypes[$entity]['fields'] = $fields; |
|
57 | } |
||
58 | |||
59 | 1 | return $fieldTypes[$entityPath]; |
|
60 | } |
||
62 |