@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | return $collection->createIndexes($indexes); |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $collection |
|
53 | + */ |
|
51 | 54 | public function insert($collection, $values) |
52 | 55 | { |
53 | 56 | $collection = $this->database->selectCollection($collection); |
@@ -60,6 +63,10 @@ discard block |
||
60 | 63 | |
61 | 64 | } |
62 | 65 | |
66 | + /** |
|
67 | + * @param string $collection |
|
68 | + * @param string|null $docId |
|
69 | + */ |
|
63 | 70 | public function get($collection, $docId) |
64 | 71 | { |
65 | 72 | $collection = $this->database->selectCollection($collection); |
@@ -131,6 +138,9 @@ discard block |
||
131 | 138 | return $result->getModifiedCount(); |
132 | 139 | } |
133 | 140 | |
141 | + /** |
|
142 | + * @param string $collection |
|
143 | + */ |
|
134 | 144 | public function delete($collection, $filter) |
135 | 145 | { |
136 | 146 | $collection = $this->database->selectCollection($collection); |
@@ -145,6 +155,9 @@ discard block |
||
145 | 155 | return $result->getDeletedCount(); |
146 | 156 | } |
147 | 157 | |
158 | + /** |
|
159 | + * @param string $collection |
|
160 | + */ |
|
148 | 161 | public function find($collection, $filters, $fields = null, $sort = null, $start = 0, $limit = 25, $debug = false) |
149 | 162 | { |
150 | 163 | $collection = $this->database->selectCollection($collection); |