Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 19 | public function build(object $object, array $options): ObjectProxy |
|
22 | { |
||
23 | 19 | $property = new ReflectionProperty($object, $options['property_path'] ?? $this->defaultPropertyName); |
|
24 | 19 | $property->setAccessible(true); |
|
25 | |||
26 | 19 | return new PropertyObjectProxy( |
|
27 | 19 | $object, |
|
28 | $property |
||
29 | ); |
||
39 |