Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function getValue() |
||
35 | { |
||
36 | if (! empty($this->value)) { |
||
37 | return $this->value; |
||
38 | } |
||
39 | |||
40 | $value = []; |
||
41 | |||
42 | $reflection = new ReflectionClass($this); |
||
43 | |||
44 | foreach ($reflection->getProperties() as $property) { |
||
45 | $value[$property->getName()] = $property->getValue(); |
||
46 | } |
||
47 | |||
48 | return $value; |
||
49 | } |
||
51 |