1 | <?php |
||
24 | abstract class AbstractRepository |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * @var AdapterInterface |
||
29 | */ |
||
30 | protected $adapter; |
||
31 | |||
32 | /** |
||
33 | * @var EntityDescriptorInterface |
||
34 | */ |
||
35 | protected $entityDescriptor; |
||
36 | |||
37 | /** |
||
38 | * @var EntityMapperInterface |
||
39 | */ |
||
40 | protected $entityMapper; |
||
41 | |||
42 | /** |
||
43 | * @var IdentityMapInterface |
||
44 | */ |
||
45 | protected $identityMap; |
||
46 | |||
47 | /** |
||
48 | * @var CollectionsMapInterface; |
||
49 | */ |
||
50 | protected $collectionsMap; |
||
51 | |||
52 | /** |
||
53 | * Sets the adapter for this statement |
||
54 | * |
||
55 | * @param AdapterInterface $adapter |
||
56 | * |
||
57 | * @return $this|self|AbstractRepository |
||
58 | */ |
||
59 | 4 | public function setAdapter(AdapterInterface $adapter) |
|
64 | |||
65 | /** |
||
66 | * Retrieves the current adapter |
||
67 | * |
||
68 | * @return AdapterInterface |
||
69 | */ |
||
70 | 4 | public function getAdapter() |
|
74 | |||
75 | /** |
||
76 | * Set the entity descriptor interface |
||
77 | * |
||
78 | * @param EntityDescriptorInterface $descriptor |
||
79 | * @return $this|self|AbstractRepository |
||
80 | */ |
||
81 | 8 | public function setEntityDescriptor(EntityDescriptorInterface $descriptor) |
|
86 | |||
87 | /** |
||
88 | * Gets entity descriptor |
||
89 | * |
||
90 | * @return EntityDescriptorInterface |
||
91 | */ |
||
92 | 4 | public function getEntityDescriptor() |
|
96 | |||
97 | /** |
||
98 | * @return EntityMapperInterface |
||
99 | */ |
||
100 | 2 | public function getEntityMapper() |
|
104 | |||
105 | /** |
||
106 | * @param $entityMapper |
||
107 | * @return $this |
||
108 | */ |
||
109 | 4 | public function setEntityMapper($entityMapper) |
|
114 | |||
115 | /** |
||
116 | * Sets identity map for this repository |
||
117 | * |
||
118 | * @param IdentityMapInterface $map |
||
119 | * @return $this|self|EntityRepository |
||
120 | */ |
||
121 | 8 | public function setIdentityMap(IdentityMapInterface $map) |
|
126 | |||
127 | /** |
||
128 | * Gets identity map for this repository |
||
129 | * |
||
130 | * @return IdentityMapInterface |
||
131 | */ |
||
132 | 12 | public function getIdentityMap() |
|
139 | |||
140 | /** |
||
141 | * Gets the collections map for this repository |
||
142 | * |
||
143 | * @return CollectionsMapInterface |
||
144 | */ |
||
145 | 2 | public function getCollectionsMap() |
|
152 | |||
153 | /** |
||
154 | * Sets the collections map |
||
155 | * |
||
156 | * @param CollectionsMapInterface $collectionsMap |
||
157 | * |
||
158 | * @return $this|self|EntityRepository |
||
159 | */ |
||
160 | 2 | public function setCollectionsMap(CollectionsMapInterface $collectionsMap) |
|
165 | |||
166 | |||
167 | |||
168 | } |