| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class MethodAccessor implements AccessorInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $property; |
||
| 15 | |||
| 16 | public function __construct(string $property) |
||
| 19 | 4 | } |
|
| 20 | |||
| 21 | 4 | /** |
|
| 22 | 4 | * @param object $object |
|
| 23 | * |
||
| 24 | * @throws SerializerLogicException |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function getValue($object) |
||
| 49 |