| Total Complexity | 7 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class PropertyAccessor implements AccessorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $property; |
||
| 16 | |||
| 17 | public function __construct(string $property) |
||
| 18 | { |
||
| 19 | $this->property = $property; |
||
| 20 | 3 | } |
|
| 21 | |||
| 22 | 3 | /** |
|
| 23 | 3 | * @param object $object |
|
| 24 | * |
||
| 25 | * @return mixed |
||
| 26 | */ |
||
| 27 | public function getValue($object) |
||
| 44 | } |
||
| 45 | |||
| 46 | 2 | /** |
|
| 47 | * @param object $object |
||
| 48 | */ |
||
| 49 | private function getClass($object): string |
||
| 65 |