1 | <?php |
||
7 | final class CallableNormalizationObjectMapping implements NormalizationObjectMappingInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $class; |
||
13 | |||
14 | /** |
||
15 | * @var callable |
||
16 | */ |
||
17 | private $callable; |
||
18 | |||
19 | /** |
||
20 | * @var NormalizationObjectMappingInterface|null |
||
21 | */ |
||
22 | private $mapping; |
||
23 | |||
24 | /** |
||
25 | * @param string $class |
||
26 | * @param callable $callable |
||
27 | */ |
||
28 | 5 | public function __construct(string $class, callable $callable) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function getClass(): string |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 1 | public function getNormalizationType(): string |
|
49 | |||
50 | /** |
||
51 | * @param string $path |
||
52 | * |
||
53 | * @return NormalizationFieldMappingInterface[] |
||
54 | */ |
||
55 | 1 | public function getNormalizationFieldMappings(string $path): array |
|
59 | |||
60 | /** |
||
61 | * @param string $path |
||
62 | * |
||
63 | * @return NormalizationFieldMappingInterface[] |
||
64 | */ |
||
65 | 1 | public function getNormalizationEmbeddedFieldMappings(string $path): array |
|
69 | |||
70 | /** |
||
71 | * @param string $path |
||
72 | * |
||
73 | * @return NormalizationLinkMappingInterface[] |
||
74 | */ |
||
75 | 1 | public function getNormalizationLinkMappings(string $path): array |
|
79 | |||
80 | /** |
||
81 | * @return NormalizationObjectMappingInterface |
||
82 | */ |
||
83 | 4 | private function getMapping(): NormalizationObjectMappingInterface |
|
92 | } |
||
93 |