Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 4 | public function override(string $propertyPath, $value): void |
|
26 | { |
||
27 | 4 | $settings = Settings::getInstance(); |
|
28 | |||
29 | $storage = &(function &() { |
||
30 | 4 | return $this->storage; |
|
|
|||
31 | 4 | })->bindTo($settings, $settings)(); |
|
32 | |||
33 | 4 | PropertyAccess::createPropertyAccessor()->setValue($storage, $propertyPath, $value); |
|
34 | 4 | } |
|
36 |