1 | <?php |
||
11 | final class SymfonyPropertyMapper implements PropertyMapperInterface |
||
12 | { |
||
13 | /** @var ClassMetadataFactoryInterface */ |
||
14 | private $factory; |
||
15 | /** @var NameConverterInterface */ |
||
16 | private $strategy; |
||
17 | |||
18 | /** |
||
19 | * SymfonyPropertyMapper constructor. |
||
20 | * |
||
21 | * @param ClassMetadataFactoryInterface $factory |
||
22 | * @param NameConverterInterface $strategy |
||
23 | */ |
||
24 | 5 | public function __construct(ClassMetadataFactoryInterface $factory, NameConverterInterface $strategy) |
|
29 | |||
30 | /** {@inheritdoc} */ |
||
31 | 4 | public function getEntityProperty($className, $apiProperty) |
|
43 | |||
44 | /** {@inheritdoc} */ |
||
45 | public function getApiProperty($className, $objectProperty) |
||
57 | |||
58 | /** {@inheritdoc} */ |
||
59 | 4 | public function getApiProperties($className) |
|
68 | |||
69 | /** {@inheritdoc} */ |
||
70 | 1 | public function getEntityProperties($className) |
|
79 | |||
80 | /** |
||
81 | * @param $className |
||
82 | * |
||
83 | * @return AttributeMetadataInterface[] |
||
84 | */ |
||
85 | 4 | private function getMetadata($className) |
|
93 | } |
||
94 |