| Conditions | 5 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | $result = []; |
||
| 35 | $current = $class; |
||
| 36 | |||
| 37 | while ($current) { |
||
| 38 | |||
| 39 | foreach ($current->getProperties() as $property) { |
||
| 40 | |||
| 41 | $propertyName = $property->getName(); |
||
| 42 | |||
| 43 | if (false === isset($result[$propertyName]) && false === $property->isStatic()) { |
||
| 44 | $result[$propertyName] = $this->factory->create($class, $property); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | $current = $current->getParentClass(); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $result; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |