@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @param Client $client |
| 57 | - * @param \MongoDB|string $database |
|
| 57 | + * @param string $database |
|
| 58 | 58 | */ |
| 59 | 59 | public function __construct(Client $client, $database) { |
| 60 | 60 | $this->client = $client; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * Reset specified mapping |
| 155 | 155 | * |
| 156 | - * @return \Sokil\Mongo\Client |
|
| 156 | + * @return Database |
|
| 157 | 157 | */ |
| 158 | 158 | public function resetMapping() |
| 159 | 159 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * |
| 168 | 168 | * @param string|array $name collection name or array like [collectionName => collectionClass, ...] |
| 169 | 169 | * @param string|array|Definition|null $classDefinition if $name is string, then full class name or array with parameters, else omitted |
| 170 | - * @return \Sokil\Mongo\Client |
|
| 170 | + * @return Database |
|
| 171 | 171 | */ |
| 172 | 172 | public function map($name, $classDefinition = null) |
| 173 | 173 | { |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * @param string $name name of collection |
| 230 | 230 | * @param array $defaultDefinition definition used when no definition found for defined class |
| 231 | 231 | * @throws Exception |
| 232 | - * @return string|array name of class or array of class definition |
|
| 232 | + * @return string name of class or array of class definition |
|
| 233 | 233 | */ |
| 234 | 234 | private function getCollectionDefinition($name, array $defaultDefinition = null) |
| 235 | 235 | { |