Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
6 | final class PropertyAccessInjector implements Injector |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $classContext; |
||
12 | |||
13 | 24 | public function __construct(?string $classContext = null) |
|
16 | } |
||
17 | |||
18 | 22 | public function inject(/*object */$target, string $property, /*object */$object): void |
|
19 | { |
||
20 | 22 | $this->createInjector($target)($property, $object); |
|
21 | } |
||
22 | |||
23 | 22 | private function createInjector(/*object */$target): \Closure |
|
32 | } |
||
33 | } |
||
34 |