@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Remove all the documents from the collection. |
55 | 55 | * |
56 | - * @return bool |
|
56 | + * @return boolean|null |
|
57 | 57 | */ |
58 | 58 | public function truncate() |
59 | 59 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param mixed $criteria |
98 | 98 | * @param bool $multiple |
99 | 99 | * |
100 | - * @return int The count of the document deleted. |
|
100 | + * @return boolean The count of the document deleted. |
|
101 | 101 | */ |
102 | 102 | public function remove($criteria, $multiple = false) |
103 | 103 | { |
@@ -124,6 +124,9 @@ discard block |
||
124 | 124 | return $this->onMatch($criteria); |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param integer $limit |
|
129 | + */ |
|
127 | 130 | protected function onMatch($criteria, $limit = null) |
128 | 131 | { |
129 | 132 | $expression = $this->parser->parse($criteria); |