Commit a46f2762 authored by Jeremy Mikola's avatar Jeremy Mikola

Fix type documentation for Count and Distinct $filter arg

parent f2c10219
...@@ -39,10 +39,10 @@ class Count implements Executable ...@@ -39,10 +39,10 @@ class Count implements Executable
* * skip (integer): The number of documents to skip before returning the * * skip (integer): The number of documents to skip before returning the
* documents. * documents.
* *
* @param string $databaseName Database name * @param string $databaseName Database name
* @param string $collectionName Collection name * @param string $collectionName Collection name
* @param array $filter Query by which to filter documents * @param array|object $filter Query by which to filter documents
* @param array $options Command options * @param array $options Command options
* @throws InvalidArgumentException * @throws InvalidArgumentException
*/ */
public function __construct($databaseName, $collectionName, $filter = array(), array $options = array()) public function __construct($databaseName, $collectionName, $filter = array(), array $options = array())
......
...@@ -32,11 +32,11 @@ class Distinct implements Executable ...@@ -32,11 +32,11 @@ class Distinct implements Executable
* * maxTimeMS (integer): The maximum amount of time to allow the query to * * maxTimeMS (integer): The maximum amount of time to allow the query to
* run. * run.
* *
* @param string $databaseName Database name * @param string $databaseName Database name
* @param string $collectionName Collection name * @param string $collectionName Collection name
* @param string $fieldName Field for which to return distinct values * @param string $fieldName Field for which to return distinct values
* @param array $filter Query by which to filter documents * @param array|object $filter Query by which to filter documents
* @param array $options Command options * @param array $options Command options
* @throws InvalidArgumentException * @throws InvalidArgumentException
*/ */
public function __construct($databaseName, $collectionName, $fieldName, $filter = array(), array $options = array()) public function __construct($databaseName, $collectionName, $fieldName, $filter = array(), array $options = array())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment