1 | <?php |
||
13 | class PropertyNameConverter |
||
14 | { |
||
15 | /** |
||
16 | * @var NameConverterInterface |
||
17 | */ |
||
18 | private $nameConverter; |
||
19 | |||
20 | /** |
||
21 | * @param NameConverterInterface $nameConverter |
||
22 | */ |
||
23 | 23 | public function __construct(NameConverterInterface $nameConverter = null) |
|
30 | |||
31 | /** |
||
32 | * Get the serialized name. |
||
33 | * |
||
34 | * @param array $propertyMeta |
||
35 | * @param string $propertyName |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | 23 | public function getSerializedName(array $propertyMeta, $propertyName) |
|
49 | |||
50 | /** |
||
51 | * Get the property name form a serialized name and meta. |
||
52 | * |
||
53 | * @param array $meta root |
||
54 | * @param string $serializedName |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 12 | public function getPropertyName($meta, $serializedName) |
|
72 | } |
||
73 |