1 | <?php |
||
9 | final class DoctrineAwarePropertyMapperDecorator implements PropertyMapperInterface |
||
10 | { |
||
11 | /** @var PropertyMapperInterface */ |
||
12 | private $decorated; |
||
13 | /** @var ManagerRegistry */ |
||
14 | private $registry; |
||
15 | |||
16 | /** |
||
17 | * DoctrineAwarePropertyMapperDecorator constructor. |
||
18 | * |
||
19 | * @param PropertyMapperInterface $decorated |
||
20 | * @param ManagerRegistry $registry |
||
21 | */ |
||
22 | 10 | public function __construct(PropertyMapperInterface $decorated, ManagerRegistry $registry) |
|
27 | |||
28 | /** {@inheritdoc} */ |
||
29 | 8 | public function getEntityProperty($className, $apiProperty) |
|
33 | |||
34 | /** {@inheritdoc} */ |
||
35 | public function getApiProperty($className, $objectProperty) |
||
39 | |||
40 | /** {@inheritdoc} */ |
||
41 | public function getApiProperties($className): array |
||
45 | |||
46 | /** {@inheritdoc} */ |
||
47 | public function getEntityProperties($className): array |
||
51 | |||
52 | 8 | private function normalizeClassName(string $className): string |
|
64 | } |
||
65 |