Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace DocLister\Tests; |
||
14 | public function getProperty($class, $property) |
||
15 | { |
||
16 | $reflection = new \ReflectionClass($class); |
||
17 | |||
18 | /** @var \ReflectionProperty $property */ |
||
19 | $property = $reflection->getProperty($property); |
||
20 | $property->setAccessible(true); |
||
21 | |||
22 | return $property->getValue($class); |
||
23 | } |
||
35 | } |