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 callable |
||
23 | */ |
||
24 | private $isDenormalizationResponsible; |
||
25 | |||
26 | /** |
||
27 | * @param ContainerInterface $container |
||
28 | * @param string $serviceId |
||
29 | * @param callable $isDenormalizationResponsible |
||
30 | */ |
||
31 | 1 | public function __construct(ContainerInterface $container, $serviceId, callable $isDenormalizationResponsible) |
|
37 | |||
38 | /** |
||
39 | * @param string $class |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | 1 | public function isDenormalizationResponsible(string $class): bool |
|
49 | |||
50 | /** |
||
51 | * @param string|null $type |
||
52 | * |
||
53 | * @return callable |
||
54 | */ |
||
55 | 1 | public function getDenormalizationFactory(string $type = null): callable |
|
59 | |||
60 | /** |
||
61 | * @param string|null $type |
||
62 | * |
||
63 | * @return DenormalizationFieldMappingInterface[] |
||
64 | */ |
||
65 | 1 | public function getDenormalizationFieldMappings(string $type = null): array |
|
69 | } |
||
70 |