Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace DocLister\Tests; |
||
25 | public function setProperty($class, $property, $value) |
||
26 | { |
||
27 | $reflection = new \ReflectionClass($class); |
||
28 | |||
29 | /** @var \ReflectionProperty $property */ |
||
30 | $property = $reflection->getProperty($property); |
||
31 | $property->setAccessible(true); |
||
32 | |||
33 | $property->setValue($class, $value); |
||
34 | } |
||
35 | } |