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 ContainerInterface $container |
||
28 | * @param string $serviceId |
||
29 | * @param string $class |
||
30 | */ |
||
31 | 1 | public function __construct(ContainerInterface $container, $serviceId, string $class) |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 1 | public function getClass(): string |
|
42 | { |
||
43 | 1 | return $this->class; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string|null $type |
||
48 | * |
||
49 | * @return callable |
||
50 | */ |
||
51 | 1 | public function getDenormalizationFactory(string $type = null): callable |
|
55 | |||
56 | /** |
||
57 | * @param string|null $type |
||
58 | * |
||
59 | * @return DenormalizationFieldMappingInterface[] |
||
60 | */ |
||
61 | 1 | public function getDenormalizationFieldMappings(string $type = null): array |
|
65 | } |
||
66 |