@@ -48,6 +48,9 @@ |
||
48 | 48 | return $document; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param DocumentInterface $document |
|
53 | + */ |
|
51 | 54 | public function flatten($document, $prepend = '') |
52 | 55 | { |
53 | 56 | $results = []; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Remove all the documents from the collection. |
61 | 61 | * |
62 | - * @return bool |
|
62 | + * @return boolean|null |
|
63 | 63 | */ |
64 | 64 | public function truncate() |
65 | 65 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @param DocumentInterface $document |
73 | 73 | * |
74 | - * @return bool |
|
74 | + * @return string |
|
75 | 75 | */ |
76 | 76 | public function insert(DocumentInterface $document) |
77 | 77 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param mixed $criteria |
104 | 104 | * @param bool $multiple |
105 | 105 | * |
106 | - * @return int The count of the document deleted. |
|
106 | + * @return boolean The count of the document deleted. |
|
107 | 107 | */ |
108 | 108 | public function remove($criteria, $multiple = false) |
109 | 109 | { |
@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return $this->onMatch($criteria); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param integer $limit |
|
135 | + */ |
|
133 | 136 | protected function onMatch($criteria, $limit = null) |
134 | 137 | { |
135 | 138 | $expression = $this->parser->parse($criteria); |