1 | <?php |
||
7 | final class CallableDenormalizationObjectMapping implements DenormalizationObjectMappingInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $class; |
||
13 | |||
14 | /** |
||
15 | * @var callable |
||
16 | */ |
||
17 | private $callable; |
||
18 | |||
19 | /** |
||
20 | * @var DenormalizationObjectMappingInterface|null |
||
21 | */ |
||
22 | private $mapping; |
||
23 | |||
24 | /** |
||
25 | * @param string $class |
||
26 | * @param callable $callable |
||
27 | */ |
||
28 | 3 | public function __construct(string $class, callable $callable) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function getClass(): string |
|
41 | |||
42 | /** |
||
43 | * @param string $path |
||
44 | * @param string|null $type |
||
45 | * |
||
46 | * @return callable |
||
47 | */ |
||
48 | 1 | public function getDenormalizationFactory(string $path, string $type = null): callable |
|
52 | |||
53 | /** |
||
54 | * @param string $path |
||
55 | * @param string|null $type |
||
56 | * |
||
57 | * @return DenormalizationFieldMappingInterface[] |
||
58 | */ |
||
59 | 1 | public function getDenormalizationFieldMappings(string $path, string $type = null): array |
|
63 | |||
64 | /** |
||
65 | * @return DenormalizationObjectMappingInterface |
||
66 | */ |
||
67 | 2 | private function getMapping(): DenormalizationObjectMappingInterface |
|
76 | } |
||
77 |