Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
54 | private function getProperties() |
||
55 | { |
||
56 | if (!$this->properties) { |
||
57 | $ref = new \ReflectionClass($this); |
||
58 | $properties = $ref->getProperties(\ReflectionProperty::IS_PROTECTED | \ReflectionProperty::IS_PUBLIC); |
||
59 | foreach ($properties as $property) { |
||
60 | $this->properties[] = $property->getName(); |
||
61 | } |
||
62 | } |
||
63 | |||
64 | return $this->properties; |
||
65 | } |
||
66 | } |
||
67 |