diff --git a/src/Operation/Aggregate.php b/src/Operation/Aggregate.php index 00d408c18..3543fc73c 100644 --- a/src/Operation/Aggregate.php +++ b/src/Operation/Aggregate.php @@ -48,6 +48,8 @@ * * @see \MongoDB\Collection::aggregate() * @see https://mongodb.com/docs/manual/reference/command/aggregate/ + * + * @final extending this class will not be supported in v2.0.0 */ class Aggregate implements Executable, Explainable { diff --git a/src/Operation/BulkWrite.php b/src/Operation/BulkWrite.php index 6da8a68b3..a5367bf2c 100644 --- a/src/Operation/BulkWrite.php +++ b/src/Operation/BulkWrite.php @@ -45,6 +45,8 @@ * Operation for executing multiple write operations. * * @see \MongoDB\Collection::bulkWrite() + * + * @final extending this class will not be supported in v2.0.0 */ class BulkWrite implements Executable { diff --git a/src/Operation/Count.php b/src/Operation/Count.php index b29aa826a..9f9225942 100644 --- a/src/Operation/Count.php +++ b/src/Operation/Count.php @@ -40,6 +40,8 @@ * * @see \MongoDB\Collection::count() * @see https://mongodb.com/docs/manual/reference/command/count/ + * + * @final extending this class will not be supported in v2.0.0 */ class Count implements Executable, Explainable { diff --git a/src/Operation/CountDocuments.php b/src/Operation/CountDocuments.php index 5d6502fca..954ea7466 100644 --- a/src/Operation/CountDocuments.php +++ b/src/Operation/CountDocuments.php @@ -36,6 +36,8 @@ * * @see \MongoDB\Collection::countDocuments() * @see https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments + * + * @final extending this class will not be supported in v2.0.0 */ class CountDocuments implements Executable { diff --git a/src/Operation/CreateCollection.php b/src/Operation/CreateCollection.php index 3292e6fa7..3f4cc881a 100644 --- a/src/Operation/CreateCollection.php +++ b/src/Operation/CreateCollection.php @@ -40,6 +40,8 @@ * * @see \MongoDB\Database::createCollection() * @see https://mongodb.com/docs/manual/reference/command/create/ + * + * @final extending this class will not be supported in v2.0.0 */ class CreateCollection implements Executable { diff --git a/src/Operation/CreateIndexes.php b/src/Operation/CreateIndexes.php index 396cc8163..e2ac08813 100644 --- a/src/Operation/CreateIndexes.php +++ b/src/Operation/CreateIndexes.php @@ -40,6 +40,8 @@ * @see \MongoDB\Collection::createIndex() * @see \MongoDB\Collection::createIndexes() * @see https://mongodb.com/docs/manual/reference/command/createIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class CreateIndexes implements Executable { diff --git a/src/Operation/CreateSearchIndexes.php b/src/Operation/CreateSearchIndexes.php index fd27b043c..d5be61116 100644 --- a/src/Operation/CreateSearchIndexes.php +++ b/src/Operation/CreateSearchIndexes.php @@ -36,6 +36,8 @@ * @see \MongoDB\Collection::createSearchIndex() * @see \MongoDB\Collection::createSearchIndexes() * @see https://mongodb.com/docs/manual/reference/command/createSearchIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class CreateSearchIndexes implements Executable { diff --git a/src/Operation/DatabaseCommand.php b/src/Operation/DatabaseCommand.php index 4ae8214f1..7ea406baa 100644 --- a/src/Operation/DatabaseCommand.php +++ b/src/Operation/DatabaseCommand.php @@ -31,6 +31,8 @@ * Operation for executing a database command. * * @see \MongoDB\Database::command() + * + * @final extending this class will not be supported in v2.0.0 */ class DatabaseCommand implements Executable { diff --git a/src/Operation/DeleteMany.php b/src/Operation/DeleteMany.php index 20ca38d1d..d6d443b32 100644 --- a/src/Operation/DeleteMany.php +++ b/src/Operation/DeleteMany.php @@ -28,6 +28,8 @@ * * @see \MongoDB\Collection::deleteOne() * @see https://mongodb.com/docs/manual/reference/command/delete/ + * + * @final extending this class will not be supported in v2.0.0 */ class DeleteMany implements Executable, Explainable { diff --git a/src/Operation/DeleteOne.php b/src/Operation/DeleteOne.php index 1aaad5d27..8bbdb45ce 100644 --- a/src/Operation/DeleteOne.php +++ b/src/Operation/DeleteOne.php @@ -28,6 +28,8 @@ * * @see \MongoDB\Collection::deleteOne() * @see https://mongodb.com/docs/manual/reference/command/delete/ + * + * @final extending this class will not be supported in v2.0.0 */ class DeleteOne implements Executable, Explainable { diff --git a/src/Operation/Distinct.php b/src/Operation/Distinct.php index 1483012f3..171a18269 100644 --- a/src/Operation/Distinct.php +++ b/src/Operation/Distinct.php @@ -39,6 +39,8 @@ * * @see \MongoDB\Collection::distinct() * @see https://mongodb.com/docs/manual/reference/command/distinct/ + * + * @final extending this class will not be supported in v2.0.0 */ class Distinct implements Executable, Explainable { diff --git a/src/Operation/DropCollection.php b/src/Operation/DropCollection.php index a467a7391..d19859de1 100644 --- a/src/Operation/DropCollection.php +++ b/src/Operation/DropCollection.php @@ -35,6 +35,8 @@ * @see \MongoDB\Collection::drop() * @see \MongoDB\Database::dropCollection() * @see https://mongodb.com/docs/manual/reference/command/drop/ + * + * @final extending this class will not be supported in v2.0.0 */ class DropCollection implements Executable { diff --git a/src/Operation/DropDatabase.php b/src/Operation/DropDatabase.php index 15cb0c34e..290887900 100644 --- a/src/Operation/DropDatabase.php +++ b/src/Operation/DropDatabase.php @@ -33,6 +33,8 @@ * @see \MongoDB\Client::dropDatabase() * @see \MongoDB\Database::drop() * @see https://mongodb.com/docs/manual/reference/command/dropDatabase/ + * + * @final extending this class will not be supported in v2.0.0 */ class DropDatabase implements Executable { diff --git a/src/Operation/DropIndexes.php b/src/Operation/DropIndexes.php index c5302e250..8fde88b4d 100644 --- a/src/Operation/DropIndexes.php +++ b/src/Operation/DropIndexes.php @@ -34,6 +34,8 @@ * * @see \MongoDB\Collection::dropIndexes() * @see https://mongodb.com/docs/manual/reference/command/dropIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class DropIndexes implements Executable { diff --git a/src/Operation/DropSearchIndex.php b/src/Operation/DropSearchIndex.php index 42fc58baa..e65adee6a 100644 --- a/src/Operation/DropSearchIndex.php +++ b/src/Operation/DropSearchIndex.php @@ -29,6 +29,8 @@ * * @see \MongoDB\Collection::dropSearchIndexes() * @see https://mongodb.com/docs/manual/reference/command/dropSearchIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class DropSearchIndex implements Executable { diff --git a/src/Operation/EstimatedDocumentCount.php b/src/Operation/EstimatedDocumentCount.php index e3c240c78..db876c71c 100644 --- a/src/Operation/EstimatedDocumentCount.php +++ b/src/Operation/EstimatedDocumentCount.php @@ -34,6 +34,8 @@ * * @see \MongoDB\Collection::estimatedDocumentCount() * @see https://mongodb.com/docs/manual/reference/command/count/ + * + * @final extending this class will not be supported in v2.0.0 */ class EstimatedDocumentCount implements Executable, Explainable { diff --git a/src/Operation/Explain.php b/src/Operation/Explain.php index 1c132b2f5..ea4572fa6 100644 --- a/src/Operation/Explain.php +++ b/src/Operation/Explain.php @@ -34,6 +34,8 @@ * * @see \MongoDB\Collection::explain() * @see https://mongodb.com/docs/manual/reference/command/explain/ + * + * @final extending this class will not be supported in v2.0.0 */ class Explain implements Executable { diff --git a/src/Operation/Find.php b/src/Operation/Find.php index 13944a682..1d2dfb388 100644 --- a/src/Operation/Find.php +++ b/src/Operation/Find.php @@ -47,6 +47,8 @@ * @see \MongoDB\Collection::find() * @see https://mongodb.com/docs/manual/tutorial/query-documents/ * @see https://mongodb.com/docs/manual/reference/operator/query-modifier/ + * + * @final extending this class will not be supported in v2.0.0 */ class Find implements Executable, Explainable { diff --git a/src/Operation/FindOne.php b/src/Operation/FindOne.php index 6fdff0a29..161d01dd0 100644 --- a/src/Operation/FindOne.php +++ b/src/Operation/FindOne.php @@ -30,6 +30,8 @@ * @see \MongoDB\Collection::findOne() * @see https://mongodb.com/docs/manual/tutorial/query-documents/ * @see https://mongodb.com/docs/manual/reference/operator/query-modifier/ + * + * @final extending this class will not be supported in v2.0.0 */ class FindOne implements Executable, Explainable { diff --git a/src/Operation/FindOneAndDelete.php b/src/Operation/FindOneAndDelete.php index ae5148872..a560ee4c6 100644 --- a/src/Operation/FindOneAndDelete.php +++ b/src/Operation/FindOneAndDelete.php @@ -29,6 +29,8 @@ * * @see \MongoDB\Collection::findOneAndDelete() * @see https://mongodb.com/docs/manual/reference/command/findAndModify/ + * + * @final extending this class will not be supported in v2.0.0 */ class FindOneAndDelete implements Executable, Explainable { diff --git a/src/Operation/FindOneAndReplace.php b/src/Operation/FindOneAndReplace.php index 6f4409406..dfd761305 100644 --- a/src/Operation/FindOneAndReplace.php +++ b/src/Operation/FindOneAndReplace.php @@ -34,6 +34,8 @@ * * @see \MongoDB\Collection::findOneAndReplace() * @see https://mongodb.com/docs/manual/reference/command/findAndModify/ + * + * @final extending this class will not be supported in v2.0.0 */ class FindOneAndReplace implements Executable, Explainable { diff --git a/src/Operation/FindOneAndUpdate.php b/src/Operation/FindOneAndUpdate.php index 0fbe127d0..3566c9822 100644 --- a/src/Operation/FindOneAndUpdate.php +++ b/src/Operation/FindOneAndUpdate.php @@ -33,6 +33,8 @@ * * @see \MongoDB\Collection::findOneAndUpdate() * @see https://mongodb.com/docs/manual/reference/command/findAndModify/ + * + * @final extending this class will not be supported in v2.0.0 */ class FindOneAndUpdate implements Executable, Explainable { diff --git a/src/Operation/InsertMany.php b/src/Operation/InsertMany.php index 01640da2f..5e227cbc2 100644 --- a/src/Operation/InsertMany.php +++ b/src/Operation/InsertMany.php @@ -37,6 +37,8 @@ * * @see \MongoDB\Collection::insertMany() * @see https://mongodb.com/docs/manual/reference/command/insert/ + * + * @final extending this class will not be supported in v2.0.0 */ class InsertMany implements Executable { diff --git a/src/Operation/InsertOne.php b/src/Operation/InsertOne.php index 8626364f8..6d8f58cd8 100644 --- a/src/Operation/InsertOne.php +++ b/src/Operation/InsertOne.php @@ -35,6 +35,8 @@ * * @see \MongoDB\Collection::insertOne() * @see https://mongodb.com/docs/manual/reference/command/insert/ + * + * @final extending this class will not be supported in v2.0.0 */ class InsertOne implements Executable { diff --git a/src/Operation/ListCollectionNames.php b/src/Operation/ListCollectionNames.php index f2124c4d4..fe0ea12c6 100644 --- a/src/Operation/ListCollectionNames.php +++ b/src/Operation/ListCollectionNames.php @@ -29,6 +29,8 @@ * * @see \MongoDB\Database::listCollectionNames() * @see https://mongodb.com/docs/manual/reference/command/listCollections/ + * + * @final extending this class will not be supported in v2.0.0 */ class ListCollectionNames implements Executable { diff --git a/src/Operation/ListCollections.php b/src/Operation/ListCollections.php index 340c11017..29b53df7c 100644 --- a/src/Operation/ListCollections.php +++ b/src/Operation/ListCollections.php @@ -29,6 +29,8 @@ * * @see \MongoDB\Database::listCollections() * @see https://mongodb.com/docs/manual/reference/command/listCollections/ + * + * @final extending this class will not be supported in v2.0.0 */ class ListCollections implements Executable { diff --git a/src/Operation/ListDatabaseNames.php b/src/Operation/ListDatabaseNames.php index 7b6a529b4..f7301c169 100644 --- a/src/Operation/ListDatabaseNames.php +++ b/src/Operation/ListDatabaseNames.php @@ -32,6 +32,8 @@ * * @see \MongoDB\Client::listDatabaseNames() * @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases + * + * @final extending this class will not be supported in v2.0.0 */ class ListDatabaseNames implements Executable { diff --git a/src/Operation/ListDatabases.php b/src/Operation/ListDatabases.php index ee90cca65..2e7e36b22 100644 --- a/src/Operation/ListDatabases.php +++ b/src/Operation/ListDatabases.php @@ -29,7 +29,9 @@ * Operation for the ListDatabases command. * * @see \MongoDB\Client::listDatabases() - * @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases` + * @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases + * + * @final extending this class will not be supported in v2.0.0 */ class ListDatabases implements Executable { diff --git a/src/Operation/ListIndexes.php b/src/Operation/ListIndexes.php index 384a5f498..351b88bac 100644 --- a/src/Operation/ListIndexes.php +++ b/src/Operation/ListIndexes.php @@ -35,6 +35,8 @@ * * @see \MongoDB\Collection::listIndexes() * @see https://mongodb.com/docs/manual/reference/command/listIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class ListIndexes implements Executable { diff --git a/src/Operation/ListSearchIndexes.php b/src/Operation/ListSearchIndexes.php index 2dbb3688b..e685da5c2 100644 --- a/src/Operation/ListSearchIndexes.php +++ b/src/Operation/ListSearchIndexes.php @@ -34,6 +34,8 @@ * * @see \MongoDB\Collection::listSearchIndexes() * @see https://mongodb.com/docs/manual/reference/command/listSearchIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class ListSearchIndexes implements Executable { diff --git a/src/Operation/MapReduce.php b/src/Operation/MapReduce.php index faf91019c..a62dd2f86 100644 --- a/src/Operation/MapReduce.php +++ b/src/Operation/MapReduce.php @@ -53,6 +53,8 @@ * @see \MongoDB\Collection::mapReduce() * @see https://mongodb.com/docs/manual/reference/command/mapReduce/ * @psalm-import-type MapReduceCallable from MapReduceResult + * + * @final extending this class will not be supported in v2.0.0 */ class MapReduce implements Executable { diff --git a/src/Operation/ModifyCollection.php b/src/Operation/ModifyCollection.php index 53eaa9e09..f8d0c721d 100644 --- a/src/Operation/ModifyCollection.php +++ b/src/Operation/ModifyCollection.php @@ -32,6 +32,8 @@ * * @see \MongoDB\Database::modifyCollection() * @see https://mongodb.com/docs/manual/reference/command/collMod/ + * + * @final extending this class will not be supported in v2.0.0 */ class ModifyCollection implements Executable { diff --git a/src/Operation/RenameCollection.php b/src/Operation/RenameCollection.php index 5b69cce41..245231a13 100644 --- a/src/Operation/RenameCollection.php +++ b/src/Operation/RenameCollection.php @@ -35,6 +35,8 @@ * @see \MongoDB\Collection::rename() * @see \MongoDB\Database::renameCollection() * @see https://mongodb.com/docs/manual/reference/command/renameCollection/ + * + * @final extending this class will not be supported in v2.0.0 */ class RenameCollection implements Executable { diff --git a/src/Operation/ReplaceOne.php b/src/Operation/ReplaceOne.php index 32bf5a06d..3cec99ff0 100644 --- a/src/Operation/ReplaceOne.php +++ b/src/Operation/ReplaceOne.php @@ -33,6 +33,8 @@ * * @see \MongoDB\Collection::replaceOne() * @see https://mongodb.com/docs/manual/reference/command/update/ + * + * @final extending this class will not be supported in v2.0.0 */ class ReplaceOne implements Executable { diff --git a/src/Operation/UpdateMany.php b/src/Operation/UpdateMany.php index e61731622..f600d46e6 100644 --- a/src/Operation/UpdateMany.php +++ b/src/Operation/UpdateMany.php @@ -31,6 +31,8 @@ * * @see \MongoDB\Collection::updateMany() * @see https://mongodb.com/docs/manual/reference/command/update/ + * + * @final extending this class will not be supported in v2.0.0 */ class UpdateMany implements Executable, Explainable { diff --git a/src/Operation/UpdateOne.php b/src/Operation/UpdateOne.php index 40d71addf..17bc4a554 100644 --- a/src/Operation/UpdateOne.php +++ b/src/Operation/UpdateOne.php @@ -31,6 +31,8 @@ * * @see \MongoDB\Collection::updateOne() * @see https://mongodb.com/docs/manual/reference/command/update/ + * + * @final extending this class will not be supported in v2.0.0 */ class UpdateOne implements Executable, Explainable { diff --git a/src/Operation/UpdateSearchIndex.php b/src/Operation/UpdateSearchIndex.php index 31d86ca8e..effb4a942 100644 --- a/src/Operation/UpdateSearchIndex.php +++ b/src/Operation/UpdateSearchIndex.php @@ -30,6 +30,8 @@ * * @see \MongoDB\Collection::updateSearchIndexes() * @see https://mongodb.com/docs/manual/reference/command/updateSearchIndexes/ + * + * @final extending this class will not be supported in v2.0.0 */ class UpdateSearchIndex implements Executable { diff --git a/src/Operation/Watch.php b/src/Operation/Watch.php index 09f8b659b..d8a1a9f27 100644 --- a/src/Operation/Watch.php +++ b/src/Operation/Watch.php @@ -56,6 +56,8 @@ * * @see \MongoDB\Collection::watch() * @see https://mongodb.com/docs/manual/changeStreams/ + * + * @final extending this class will not be supported in v2.0.0 */ class Watch implements Executable, /* @internal */ CommandSubscriber {