Skip to content

Commit 4b0d5ad

Browse files
committed
PHPLIB-64: Prototype for collection create method
1 parent 0c0d334 commit 4b0d5ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Database.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ public function __construct(Manager $manager, $databaseName, WriteConcern $wc =
3232
$this->rp = $rp;
3333
}
3434

35+
/**
36+
* Create a new collection explicitly.
37+
*
38+
* @see http://docs.mongodb.org/manual/reference/command/create/
39+
* @see http://docs.mongodb.org/manual/reference/method/db.createCollection/
40+
* @param string $collectionName
41+
* @param array $options
42+
* @return Result
43+
*/
44+
public function createCollection($collectionName, array $options = array())
45+
{
46+
// TODO
47+
}
48+
3549
/**
3650
* Select a specific collection in this database
3751
*

0 commit comments

Comments
 (0)