@@ 1045-1053 (lines=9) @@ | ||
1042 | * @return $this |
|
1043 | * @throws \BadMethodCallException if the query is not a mapReduce command |
|
1044 | */ |
|
1045 | public function mapReduceOptions(array $options) |
|
1046 | { |
|
1047 | if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
|
1048 | throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
|
1049 | } |
|
1050 | ||
1051 | $this->query['mapReduce']['options'] = $options; |
|
1052 | return $this; |
|
1053 | } |
|
1054 | ||
1055 | /** |
|
1056 | * Updates the value of the field to a specified value if the specified value is greater than the current value of the field. |
|
@@ 1229-1237 (lines=9) @@ | ||
1226 | * @return $this |
|
1227 | * @throws \BadMethodCallException if the query is not a mapReduce command |
|
1228 | */ |
|
1229 | public function out($out) |
|
1230 | { |
|
1231 | if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
|
1232 | throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
|
1233 | } |
|
1234 | ||
1235 | $this->query['mapReduce']['out'] = $out; |
|
1236 | return $this; |
|
1237 | } |
|
1238 | ||
1239 | /** |
|
1240 | * Remove the first element from the current array field. |