@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @param string $selector |
| 162 | 162 | * @param string|callable $className string class name or closure, which accept data and return string class name |
| 163 | - * @return object representation of document with class, passed as argument |
|
| 163 | + * @return null|Structure representation of document with class, passed as argument |
|
| 164 | 164 | * @throws \Sokil\Mongo\Exception |
| 165 | 165 | */ |
| 166 | 166 | public function getObject($selector, $className = '\Sokil\Mongo\Structure') |
@@ -298,6 +298,9 @@ discard block |
||
| 298 | 298 | return $this; |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $selector |
|
| 303 | + */ |
|
| 301 | 304 | public function has($selector) |
| 302 | 305 | { |
| 303 | 306 | $pointer = &$this->data; |
@@ -361,6 +364,9 @@ discard block |
||
| 361 | 364 | return (array) $value; |
| 362 | 365 | } |
| 363 | 366 | |
| 367 | + /** |
|
| 368 | + * @param string $selector |
|
| 369 | + */ |
|
| 364 | 370 | public function unsetField($selector) |
| 365 | 371 | { |
| 366 | 372 | // modify |