1 | <?php |
||
9 | abstract class AbstractDriver implements BaseDriver |
||
10 | { |
||
11 | /** |
||
12 | * @return mixed |
||
13 | */ |
||
14 | abstract public function getDatabase(); |
||
15 | |||
16 | /** |
||
17 | * @param int|string $id |
||
18 | * |
||
19 | * @return mixed |
||
20 | */ |
||
21 | abstract public function createObjectId($id); |
||
22 | |||
23 | /** |
||
24 | * @param Collection $collection |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | 6 | public function generateQuery(Collection $collection) |
|
32 | |||
33 | /** |
||
34 | * @param Collection $collection |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | 6 | protected function parseConditions(Collection $collection) |
|
52 | |||
53 | /** |
||
54 | * @param Collection $collection |
||
55 | * @param bool|false $prefix |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | 6 | protected function getConditionArray(Collection $collection, $prefix = false) |
|
73 | |||
74 | /** |
||
75 | * @param array $array |
||
76 | * @param string $prefix |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | 2 | protected static function prefixArrayKeys(array $array, $prefix) |
|
90 | } |
||
91 |