Skip to content

Commit b6a120e

Browse files
committed
PHPLIB-71: Prototypes for collection drop methods
1 parent b51e1b3 commit b6a120e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/Collection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ public function createIndexes(array $models)
9595
// TODO
9696
}
9797

98+
/**
99+
* Drop this collection.
100+
*
101+
* @return Result
102+
*/
103+
public function drop()
104+
{
105+
// TODO
106+
}
107+
98108
/**
99109
* Drop a single index in the collection.
100110
*

src/Database.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ public function drop()
5757
// TODO
5858
}
5959

60+
/**
61+
* Drop a collection within this database.
62+
*
63+
* @param string $collectionName
64+
* @return Result
65+
*/
66+
public function dropCollection($collectionName)
67+
{
68+
// TODO
69+
}
70+
6071
/**
6172
* Select a specific collection in this database
6273
*

0 commit comments

Comments
 (0)