Skip to content

Commit dac8b8f

Browse files
committed
Revert "Add final annotations to non-internal Operation classes (#1410)"
This reverts commit 89fb97a.
1 parent 29743f8 commit dac8b8f

38 files changed

+1
-77
lines changed

src/Operation/Aggregate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
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
5351
*/
5452
class Aggregate implements Executable, Explainable
5553
{

src/Operation/BulkWrite.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
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
5048
*/
5149
class BulkWrite implements Executable
5250
{

src/Operation/Count.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
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
4543
*/
4644
class Count implements Executable, Explainable
4745
{

src/Operation/CountDocuments.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
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
4139
*/
4240
class CountDocuments implements Executable
4341
{

src/Operation/CreateCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
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
4543
*/
4644
class CreateCollection implements Executable
4745
{

src/Operation/CreateIndexes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
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
4543
*/
4644
class CreateIndexes implements Executable
4745
{

src/Operation/CreateSearchIndexes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
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
4139
*/
4240
class CreateSearchIndexes implements Executable
4341
{

src/Operation/DatabaseCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
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
3634
*/
3735
class DatabaseCommand implements Executable
3836
{

src/Operation/DeleteMany.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
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
3331
*/
3432
class DeleteMany implements Executable, Explainable
3533
{

src/Operation/DeleteOne.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
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
3331
*/
3432
class DeleteOne implements Executable, Explainable
3533
{

src/Operation/Distinct.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
*
4040
* @see \MongoDB\Collection::distinct()
4141
* @see https://mongodb.com/docs/manual/reference/command/distinct/
42-
*
43-
* @final extending this class will not be supported in v2.0.0
4442
*/
4543
class Distinct implements Executable, Explainable
4644
{

src/Operation/DropCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
* @see \MongoDB\Collection::drop()
3636
* @see \MongoDB\Database::dropCollection()
3737
* @see https://mongodb.com/docs/manual/reference/command/drop/
38-
*
39-
* @final extending this class will not be supported in v2.0.0
4038
*/
4139
class DropCollection implements Executable
4240
{

src/Operation/DropDatabase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
* @see \MongoDB\Client::dropDatabase()
3434
* @see \MongoDB\Database::drop()
3535
* @see https://mongodb.com/docs/manual/reference/command/dropDatabase/
36-
*
37-
* @final extending this class will not be supported in v2.0.0
3836
*/
3937
class DropDatabase implements Executable
4038
{

src/Operation/DropIndexes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
*
3535
* @see \MongoDB\Collection::dropIndexes()
3636
* @see https://mongodb.com/docs/manual/reference/command/dropIndexes/
37-
*
38-
* @final extending this class will not be supported in v2.0.0
3937
*/
4038
class DropIndexes implements Executable
4139
{

src/Operation/DropSearchIndex.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
*
3030
* @see \MongoDB\Collection::dropSearchIndexes()
3131
* @see https://mongodb.com/docs/manual/reference/command/dropSearchIndexes/
32-
*
33-
* @final extending this class will not be supported in v2.0.0
3432
*/
3533
class DropSearchIndex implements Executable
3634
{

src/Operation/EstimatedDocumentCount.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
*
3535
* @see \MongoDB\Collection::estimatedDocumentCount()
3636
* @see https://mongodb.com/docs/manual/reference/command/count/
37-
*
38-
* @final extending this class will not be supported in v2.0.0
3937
*/
4038
class EstimatedDocumentCount implements Executable, Explainable
4139
{

src/Operation/Explain.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
*
3535
* @see \MongoDB\Collection::explain()
3636
* @see https://mongodb.com/docs/manual/reference/command/explain/
37-
*
38-
* @final extending this class will not be supported in v2.0.0
3937
*/
4038
class Explain implements Executable
4139
{

src/Operation/Find.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
* @see \MongoDB\Collection::find()
4848
* @see https://mongodb.com/docs/manual/tutorial/query-documents/
4949
* @see https://mongodb.com/docs/manual/reference/operator/query-modifier/
50-
*
51-
* @final extending this class will not be supported in v2.0.0
5250
*/
5351
class Find implements Executable, Explainable
5452
{

src/Operation/FindOne.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
* @see \MongoDB\Collection::findOne()
3131
* @see https://mongodb.com/docs/manual/tutorial/query-documents/
3232
* @see https://mongodb.com/docs/manual/reference/operator/query-modifier/
33-
*
34-
* @final extending this class will not be supported in v2.0.0
3533
*/
3634
class FindOne implements Executable, Explainable
3735
{

src/Operation/FindOneAndDelete.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
*
3030
* @see \MongoDB\Collection::findOneAndDelete()
3131
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
32-
*
33-
* @final extending this class will not be supported in v2.0.0
3432
*/
3533
class FindOneAndDelete implements Executable, Explainable
3634
{

src/Operation/FindOneAndReplace.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
*
3535
* @see \MongoDB\Collection::findOneAndReplace()
3636
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
37-
*
38-
* @final extending this class will not be supported in v2.0.0
3937
*/
4038
class FindOneAndReplace implements Executable, Explainable
4139
{

src/Operation/FindOneAndUpdate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
*
3434
* @see \MongoDB\Collection::findOneAndUpdate()
3535
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
36-
*
37-
* @final extending this class will not be supported in v2.0.0
3836
*/
3937
class FindOneAndUpdate implements Executable, Explainable
4038
{

src/Operation/InsertMany.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
*
3838
* @see \MongoDB\Collection::insertMany()
3939
* @see https://mongodb.com/docs/manual/reference/command/insert/
40-
*
41-
* @final extending this class will not be supported in v2.0.0
4240
*/
4341
class InsertMany implements Executable
4442
{

src/Operation/InsertOne.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
*
3636
* @see \MongoDB\Collection::insertOne()
3737
* @see https://mongodb.com/docs/manual/reference/command/insert/
38-
*
39-
* @final extending this class will not be supported in v2.0.0
4038
*/
4139
class InsertOne implements Executable
4240
{

src/Operation/ListCollectionNames.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
*
3030
* @see \MongoDB\Database::listCollectionNames()
3131
* @see https://mongodb.com/docs/manual/reference/command/listCollections/
32-
*
33-
* @final extending this class will not be supported in v2.0.0
3432
*/
3533
class ListCollectionNames implements Executable
3634
{

src/Operation/ListCollections.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
*
3030
* @see \MongoDB\Database::listCollections()
3131
* @see https://mongodb.com/docs/manual/reference/command/listCollections/
32-
*
33-
* @final extending this class will not be supported in v2.0.0
3432
*/
3533
class ListCollections implements Executable
3634
{

src/Operation/ListDatabaseNames.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
*
3333
* @see \MongoDB\Client::listDatabaseNames()
3434
* @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases
35-
*
36-
* @final extending this class will not be supported in v2.0.0
3735
*/
3836
class ListDatabaseNames implements Executable
3937
{

src/Operation/ListDatabases.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
* Operation for the ListDatabases command.
3030
*
3131
* @see \MongoDB\Client::listDatabases()
32-
* @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases
33-
*
34-
* @final extending this class will not be supported in v2.0.0
32+
* @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases`
3533
*/
3634
class ListDatabases implements Executable
3735
{

src/Operation/ListIndexes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
*
3636
* @see \MongoDB\Collection::listIndexes()
3737
* @see https://mongodb.com/docs/manual/reference/command/listIndexes/
38-
*
39-
* @final extending this class will not be supported in v2.0.0
4038
*/
4139
class ListIndexes implements Executable
4240
{

src/Operation/ListSearchIndexes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
*
3535
* @see \MongoDB\Collection::listSearchIndexes()
3636
* @see https://mongodb.com/docs/manual/reference/command/listSearchIndexes/
37-
*
38-
* @final extending this class will not be supported in v2.0.0
3937
*/
4038
class ListSearchIndexes implements Executable
4139
{

src/Operation/MapReduce.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
* @see \MongoDB\Collection::mapReduce()
5454
* @see https://mongodb.com/docs/manual/reference/command/mapReduce/
5555
* @psalm-import-type MapReduceCallable from MapReduceResult
56-
*
57-
* @final extending this class will not be supported in v2.0.0
5856
*/
5957
class MapReduce implements Executable
6058
{

src/Operation/ModifyCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
*
3333
* @see \MongoDB\Database::modifyCollection()
3434
* @see https://mongodb.com/docs/manual/reference/command/collMod/
35-
*
36-
* @final extending this class will not be supported in v2.0.0
3735
*/
3836
class ModifyCollection implements Executable
3937
{

src/Operation/RenameCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
* @see \MongoDB\Collection::rename()
3636
* @see \MongoDB\Database::renameCollection()
3737
* @see https://mongodb.com/docs/manual/reference/command/renameCollection/
38-
*
39-
* @final extending this class will not be supported in v2.0.0
4038
*/
4139
class RenameCollection implements Executable
4240
{

src/Operation/ReplaceOne.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
*
3434
* @see \MongoDB\Collection::replaceOne()
3535
* @see https://mongodb.com/docs/manual/reference/command/update/
36-
*
37-
* @final extending this class will not be supported in v2.0.0
3836
*/
3937
class ReplaceOne implements Executable
4038
{

src/Operation/UpdateMany.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
*
3232
* @see \MongoDB\Collection::updateMany()
3333
* @see https://mongodb.com/docs/manual/reference/command/update/
34-
*
35-
* @final extending this class will not be supported in v2.0.0
3634
*/
3735
class UpdateMany implements Executable, Explainable
3836
{

src/Operation/UpdateOne.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
*
3232
* @see \MongoDB\Collection::updateOne()
3333
* @see https://mongodb.com/docs/manual/reference/command/update/
34-
*
35-
* @final extending this class will not be supported in v2.0.0
3634
*/
3735
class UpdateOne implements Executable, Explainable
3836
{

src/Operation/UpdateSearchIndex.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
*
3131
* @see \MongoDB\Collection::updateSearchIndexes()
3232
* @see https://mongodb.com/docs/manual/reference/command/updateSearchIndexes/
33-
*
34-
* @final extending this class will not be supported in v2.0.0
3533
*/
3634
class UpdateSearchIndex implements Executable
3735
{

src/Operation/Watch.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
*
5757
* @see \MongoDB\Collection::watch()
5858
* @see https://mongodb.com/docs/manual/changeStreams/
59-
*
60-
* @final extending this class will not be supported in v2.0.0
6159
*/
6260
class Watch implements Executable, /* @internal */ CommandSubscriber
6361
{

0 commit comments

Comments
 (0)