Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
27 | protected function getParams(): array |
||
28 | { |
||
29 | $params = parent::getParams(); |
||
30 | |||
31 | $reflectionClassName = new ClassReflection($this->entityClassName); |
||
32 | foreach ($reflectionClassName->getProperties() as $property) { |
||
33 | foreach ($this->relations as $type) { |
||
34 | $annotation = (new AnnotationReader()) |
||
35 | ->getPropertyAnnotation($property, $type); |
||
36 | if ($annotation) { |
||
37 | $params['dataRelationship'] = '//TODO process data relationship'; |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | |||
42 | return $params; |
||
43 | } |
||
50 |