1 | <?php |
||
21 | abstract class AbstractRepository |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var AdapterInterface |
||
26 | */ |
||
27 | protected $adapter; |
||
28 | |||
29 | /** |
||
30 | * @var EntityDescriptorInterface |
||
31 | */ |
||
32 | protected $entityDescriptor; |
||
33 | |||
34 | /** |
||
35 | * Sets the adapter for this statement |
||
36 | * |
||
37 | * @param AdapterInterface $adapter |
||
38 | * |
||
39 | * @return $this|self|AbstractRepository |
||
40 | */ |
||
41 | public function setAdapter(AdapterInterface $adapter) |
||
46 | |||
47 | /** |
||
48 | * Retrieves the current adapter |
||
49 | * |
||
50 | * @return AdapterInterface |
||
51 | */ |
||
52 | public function getAdapter() |
||
56 | |||
57 | /** |
||
58 | * Set the entity descriptor interface |
||
59 | * |
||
60 | * @param EntityDescriptorInterface $descriptor |
||
61 | * @return $this|self|AbstractRepository |
||
62 | */ |
||
63 | public function setEntityDescriptor(EntityDescriptorInterface $descriptor) |
||
68 | |||
69 | /** |
||
70 | * Gets entity descriptor |
||
71 | * |
||
72 | * @return EntityDescriptorInterface |
||
73 | */ |
||
74 | public function getEntityDescriptor() |
||
78 | |||
79 | } |