Skip to content

Commit 448800b

Browse files
committed
PHPLIB-46: Prototypes for index enumeration method
1 parent 495e46d commit 448800b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Collection.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,18 @@ public function insertOne(array $document)
939939
return new InsertOneResult($wr, $id);
940940
}
941941

942+
/**
943+
* Returns information for all indexes in the collection.
944+
*
945+
* @see http://docs.mongodb.org/manual/reference/command/listIndexes/
946+
* @see http://docs.mongodb.org/manual/reference/method/db.collection.getIndexes/
947+
* @return Result
948+
*/
949+
public function listIndexes()
950+
{
951+
// TODO
952+
}
953+
942954
/**
943955
* Replace one document
944956
*

0 commit comments

Comments
 (0)