@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | */ |
48 | 48 | private $collectionPoolEnabled = true; |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $database |
|
52 | + */ |
|
50 | 53 | public function __construct(Client $client, $database) { |
51 | 54 | $this->client = $client; |
52 | 55 | |
@@ -137,7 +140,7 @@ discard block |
||
137 | 140 | /** |
138 | 141 | * Reset specified mapping |
139 | 142 | * |
140 | - * @return \Sokil\Mongo\Client |
|
143 | + * @return Database |
|
141 | 144 | */ |
142 | 145 | public function resetMapping() |
143 | 146 | { |
@@ -151,7 +154,7 @@ discard block |
||
151 | 154 | * |
152 | 155 | * @param string|array $name collection name or array like [collectionName => collectionClass, ...] |
153 | 156 | * @param string|array|Definition|null $classDefinition if $name is string, then full class name or array with parameters, else omitted |
154 | - * @return \Sokil\Mongo\Client |
|
157 | + * @return Database |
|
155 | 158 | */ |
156 | 159 | public function map($name, $classDefinition = null) |
157 | 160 | { |
@@ -213,7 +216,7 @@ discard block |
||
213 | 216 | * @param string $name name of collection |
214 | 217 | * @param array $defaultDefinition definition used when no definition found for defined class |
215 | 218 | * @throws Exception |
216 | - * @return string|array name of class or array of class definition |
|
219 | + * @return string name of class or array of class definition |
|
217 | 220 | */ |
218 | 221 | private function getCollectionDefinition($name, array $defaultDefinition = null) |
219 | 222 | { |