Skip to content

Commit 89fb97a

Browse files
authored
Add final annotations to non-internal Operation classes (#1410)
1 parent f2842bc commit 89fb97a

38 files changed

+77
-1
lines changed

src/Operation/Aggregate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
*
4949
* @see \MongoDB\Collection::aggregate()
5050
* @see https://mongodb.com/docs/manual/reference/command/aggregate/
51+
*
52+
* @final extending this class will not be supported in v2.0.0
5153
*/
5254
class Aggregate implements Executable, Explainable
5355
{

src/Operation/BulkWrite.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
* Operation for executing multiple write operations.
4646
*
4747
* @see \MongoDB\Collection::bulkWrite()
48+
*
49+
* @final extending this class will not be supported in v2.0.0
4850
*/
4951
class BulkWrite implements Executable
5052
{

src/Operation/Count.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
*
4141
* @see \MongoDB\Collection::count()
4242
* @see https://mongodb.com/docs/manual/reference/command/count/
43+
*
44+
* @final extending this class will not be supported in v2.0.0
4345
*/
4446
class Count implements Executable, Explainable
4547
{

src/Operation/CountDocuments.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
*
3737
* @see \MongoDB\Collection::countDocuments()
3838
* @see https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments
39+
*
40+
* @final extending this class will not be supported in v2.0.0
3941
*/
4042
class CountDocuments implements Executable
4143
{

src/Operation/CreateCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
*
4141
* @see \MongoDB\Database::createCollection()
4242
* @see https://mongodb.com/docs/manual/reference/command/create/
43+
*
44+
* @final extending this class will not be supported in v2.0.0
4345
*/
4446
class CreateCollection implements Executable
4547
{

src/Operation/CreateIndexes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
* @see \MongoDB\Collection::createIndex()
4141
* @see \MongoDB\Collection::createIndexes()
4242
* @see https://mongodb.com/docs/manual/reference/command/createIndexes/
43+
*
44+
* @final extending this class will not be supported in v2.0.0
4345
*/
4446
class CreateIndexes implements Executable
4547
{

src/Operation/CreateSearchIndexes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
* @see \MongoDB\Collection::createSearchIndex()
3737
* @see \MongoDB\Collection::createSearchIndexes()
3838
* @see https://mongodb.com/docs/manual/reference/command/createSearchIndexes/
39+
*
40+
* @final extending this class will not be supported in v2.0.0
3941
*/
4042
class CreateSearchIndexes implements Executable
4143
{

src/Operation/DatabaseCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* Operation for executing a database command.
3232
*
3333
* @see \MongoDB\Database::command()
34+
*
35+
* @final extending this class will not be supported in v2.0.0
3436
*/
3537
class DatabaseCommand implements Executable
3638
{

src/Operation/DeleteMany.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
*
2929
* @see \MongoDB\Collection::deleteOne()
3030
* @see https://mongodb.com/docs/manual/reference/command/delete/
31+
*
32+
* @final extending this class will not be supported in v2.0.0
3133
*/
3234
class DeleteMany implements Executable, Explainable
3335
{

src/Operation/DeleteOne.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
*
2929
* @see \MongoDB\Collection::deleteOne()
3030
* @see https://mongodb.com/docs/manual/reference/command/delete/
31+
*
32+
* @final extending this class will not be supported in v2.0.0
3133
*/
3234
class DeleteOne implements Executable, Explainable
3335
{

0 commit comments

Comments
 (0)