Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function execute() |
||
31 | { |
||
32 | $ref = new \ReflectionClass($this->class); |
||
33 | |||
34 | if ($ref->hasProperty($this->property)) { |
||
35 | if (!$ref->getProperty($this->property)->isPublic()) { |
||
36 | $properties = $ref->getDefaultProperties(); |
||
37 | |||
38 | return $this->value == $properties[$this->property]; |
||
39 | } |
||
40 | |||
41 | return $this->value == $ref->getProperty($this->property)->getValue(); |
||
42 | } |
||
43 | |||
44 | return false; |
||
45 | } |
||
46 | |||
67 | } |