1 | <?php |
||
7 | abstract class AbstractReferenceProvider implements ReferenceProviderInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var ManagerRegistry |
||
11 | */ |
||
12 | private $registry; |
||
13 | |||
14 | /** |
||
15 | * PartialReferenceProvider constructor. |
||
16 | * |
||
17 | * @param ManagerRegistry $registry |
||
18 | */ |
||
19 | 8 | public function __construct(ManagerRegistry $registry) |
|
23 | |||
24 | /** {@inheritdoc} */ |
||
25 | 6 | final public function getEntityReference($fqcn, $property, $identifier) |
|
52 | |||
53 | /** |
||
54 | * Returns the reference of class |
||
55 | * |
||
56 | * @param string $fqcn |
||
57 | * @param mixed $identifier |
||
58 | * |
||
59 | * @return object |
||
60 | */ |
||
61 | abstract protected function getReference($fqcn, $identifier); |
||
62 | |||
63 | /** |
||
64 | * @return ManagerRegistry |
||
65 | */ |
||
66 | 2 | protected function getRegistry() |
|
70 | } |
||
71 |