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