Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | final class LazyDenormalizationObjectMapping implements DenormalizationObjectMappingInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var ContainerInterface |
||
13 | */ |
||
14 | private $container; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $serviceId; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $class; |
||
25 | |||
26 | /** |
||
27 | * @param string $serviceId |
||
28 | */ |
||
29 | public function __construct(ContainerInterface $container, $serviceId, string $class) |
||
30 | { |
||
31 | 1 | $this->container = $container; |
|
32 | $this->serviceId = $serviceId; |
||
33 | 1 | $this->class = $class; |
|
34 | 1 | } |
|
35 | 1 | ||
36 | 1 | public function getClass(): string |
|
39 | } |
||
40 | |||
41 | 1 | public function getDenormalizationFactory(string $path, string $type = null): callable |
|
42 | { |
||
43 | 1 | return $this->container->get($this->serviceId)->getDenormalizationFactory($path, $type); |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return DenormalizationFieldMappingInterface[] |
||
48 | */ |
||
49 | public function getDenormalizationFieldMappings(string $path, string $type = null): array |
||
52 | 1 | } |
|
53 | } |
||
54 |