Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function getProperties(ReflectionClass $reflection): SplObjectStorage |
||
25 | { |
||
26 | $properties = new SplObjectStorage(); |
||
27 | $defaults = $reflection->getDefaultProperties(); |
||
28 | |||
29 | foreach ($reflection->getProperties() as $property) { |
||
30 | if ($this->isIgnoredProperty($property)) { |
||
31 | continue; |
||
32 | } |
||
33 | |||
34 | $properties->attach($property, array_key_exists($property->getName(), $defaults)); |
||
35 | } |
||
36 | |||
37 | return $properties; |
||
38 | } |
||
39 | |||
49 |