1 | <?php |
||
12 | final class JmsPropertyMapper implements PropertyMapperInterface |
||
13 | { |
||
14 | /** @var MetadataFactoryInterface */ |
||
15 | private $factory; |
||
16 | /** @var PropertyNamingStrategyInterface */ |
||
17 | private $strategy; |
||
18 | |||
19 | /** |
||
20 | * JmsPropertyMapper constructor. |
||
21 | * |
||
22 | * @param MetadataFactoryInterface $factory |
||
23 | * @param PropertyNamingStrategyInterface $strategy |
||
24 | */ |
||
25 | public function __construct(MetadataFactoryInterface $factory, PropertyNamingStrategyInterface $strategy) |
||
30 | |||
31 | /** {@inheritdoc} */ |
||
32 | public function getEntityProperty($className, $apiProperty) |
||
45 | |||
46 | /** {@inheritdoc} */ |
||
47 | public function getApiProperty($className, $objectProperty) |
||
57 | |||
58 | /** {@inheritdoc} */ |
||
59 | public function getApiProperties($className): array |
||
72 | |||
73 | /** {@inheritdoc} */ |
||
74 | public function getEntityProperties($className): array |
||
89 | |||
90 | /** |
||
91 | * @param $className |
||
92 | * |
||
93 | * @return ClassMetadata |
||
94 | * @throws MapperException |
||
95 | */ |
||
96 | private function getMetadata($className): ClassMetadata |
||
106 | |||
107 | private function getPropertyName(PropertyMetadata $propertyMetadata): string |
||
111 | } |
||
112 |