File tree Expand file tree Collapse file tree 38 files changed +38
-38
lines changed Expand file tree Collapse file tree 38 files changed +38
-38
lines changed Original file line number Diff line number Diff line change 49
49
* @see \MongoDB\Collection::aggregate()
50
50
* @see https://mongodb.com/docs/manual/reference/command/aggregate/
51
51
*/
52
- class Aggregate implements Executable, Explainable
52
+ final class Aggregate implements Executable, Explainable
53
53
{
54
54
private bool $ isWrite ;
55
55
Original file line number Diff line number Diff line change 46
46
*
47
47
* @see \MongoDB\Collection::bulkWrite()
48
48
*/
49
- class BulkWrite implements Executable
49
+ final class BulkWrite implements Executable
50
50
{
51
51
public const DELETE_MANY = 'deleteMany ' ;
52
52
public const DELETE_ONE = 'deleteOne ' ;
Original file line number Diff line number Diff line change 41
41
* @see \MongoDB\Collection::count()
42
42
* @see https://mongodb.com/docs/manual/reference/command/count/
43
43
*/
44
- class Count implements Executable, Explainable
44
+ final class Count implements Executable, Explainable
45
45
{
46
46
/**
47
47
* Constructs a count command.
Original file line number Diff line number Diff line change 37
37
* @see \MongoDB\Collection::countDocuments()
38
38
* @see https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments
39
39
*/
40
- class CountDocuments implements Executable
40
+ final class CountDocuments implements Executable
41
41
{
42
42
private array $ aggregateOptions ;
43
43
Original file line number Diff line number Diff line change 41
41
* @see \MongoDB\Database::createCollection()
42
42
* @see https://mongodb.com/docs/manual/reference/command/create/
43
43
*/
44
- class CreateCollection implements Executable
44
+ final class CreateCollection implements Executable
45
45
{
46
46
public const USE_POWER_OF_2_SIZES = 1 ;
47
47
public const NO_PADDING = 2 ;
Original file line number Diff line number Diff line change 41
41
* @see \MongoDB\Collection::createIndexes()
42
42
* @see https://mongodb.com/docs/manual/reference/command/createIndexes/
43
43
*/
44
- class CreateIndexes implements Executable
44
+ final class CreateIndexes implements Executable
45
45
{
46
46
private const WIRE_VERSION_FOR_COMMIT_QUORUM = 9 ;
47
47
Original file line number Diff line number Diff line change 37
37
* @see \MongoDB\Collection::createSearchIndexes()
38
38
* @see https://mongodb.com/docs/manual/reference/command/createSearchIndexes/
39
39
*/
40
- class CreateSearchIndexes implements Executable
40
+ final class CreateSearchIndexes implements Executable
41
41
{
42
42
private array $ indexes = [];
43
43
Original file line number Diff line number Diff line change 32
32
*
33
33
* @see \MongoDB\Database::command()
34
34
*/
35
- class DatabaseCommand implements Executable
35
+ final class DatabaseCommand implements Executable
36
36
{
37
37
private Command $ command ;
38
38
Original file line number Diff line number Diff line change 29
29
* @see \MongoDB\Collection::deleteOne()
30
30
* @see https://mongodb.com/docs/manual/reference/command/delete/
31
31
*/
32
- class DeleteMany implements Executable, Explainable
32
+ final class DeleteMany implements Executable, Explainable
33
33
{
34
34
private Delete $ delete ;
35
35
Original file line number Diff line number Diff line change 29
29
* @see \MongoDB\Collection::deleteOne()
30
30
* @see https://mongodb.com/docs/manual/reference/command/delete/
31
31
*/
32
- class DeleteOne implements Executable, Explainable
32
+ final class DeleteOne implements Executable, Explainable
33
33
{
34
34
private Delete $ delete ;
35
35
Original file line number Diff line number Diff line change 40
40
* @see \MongoDB\Collection::distinct()
41
41
* @see https://mongodb.com/docs/manual/reference/command/distinct/
42
42
*/
43
- class Distinct implements Executable, Explainable
43
+ final class Distinct implements Executable, Explainable
44
44
{
45
45
/**
46
46
* Constructs a distinct command.
Original file line number Diff line number Diff line change 36
36
* @see \MongoDB\Database::dropCollection()
37
37
* @see https://mongodb.com/docs/manual/reference/command/drop/
38
38
*/
39
- class DropCollection implements Executable
39
+ final class DropCollection implements Executable
40
40
{
41
41
private const ERROR_CODE_NAMESPACE_NOT_FOUND = 26 ;
42
42
Original file line number Diff line number Diff line change 34
34
* @see \MongoDB\Database::drop()
35
35
* @see https://mongodb.com/docs/manual/reference/command/dropDatabase/
36
36
*/
37
- class DropDatabase implements Executable
37
+ final class DropDatabase implements Executable
38
38
{
39
39
/**
40
40
* Constructs a dropDatabase command.
Original file line number Diff line number Diff line change 35
35
* @see \MongoDB\Collection::dropIndexes()
36
36
* @see https://mongodb.com/docs/manual/reference/command/dropIndexes/
37
37
*/
38
- class DropIndexes implements Executable
38
+ final class DropIndexes implements Executable
39
39
{
40
40
/**
41
41
* Constructs a dropIndexes command.
Original file line number Diff line number Diff line change 30
30
* @see \MongoDB\Collection::dropSearchIndexes()
31
31
* @see https://mongodb.com/docs/manual/reference/command/dropSearchIndexes/
32
32
*/
33
- class DropSearchIndex implements Executable
33
+ final class DropSearchIndex implements Executable
34
34
{
35
35
private const ERROR_CODE_NAMESPACE_NOT_FOUND = 26 ;
36
36
Original file line number Diff line number Diff line change 35
35
* @see \MongoDB\Collection::estimatedDocumentCount()
36
36
* @see https://mongodb.com/docs/manual/reference/command/count/
37
37
*/
38
- class EstimatedDocumentCount implements Executable, Explainable
38
+ final class EstimatedDocumentCount implements Executable, Explainable
39
39
{
40
40
private array $ options ;
41
41
Original file line number Diff line number Diff line change 35
35
* @see \MongoDB\Collection::explain()
36
36
* @see https://mongodb.com/docs/manual/reference/command/explain/
37
37
*/
38
- class Explain implements Executable
38
+ final class Explain implements Executable
39
39
{
40
40
public const VERBOSITY_ALL_PLANS = 'allPlansExecution ' ;
41
41
public const VERBOSITY_EXEC_STATS = 'executionStats ' ;
Original file line number Diff line number Diff line change 48
48
* @see https://mongodb.com/docs/manual/tutorial/query-documents/
49
49
* @see https://mongodb.com/docs/manual/reference/operator/query-modifier/
50
50
*/
51
- class Find implements Executable, Explainable
51
+ final class Find implements Executable, Explainable
52
52
{
53
53
public const NON_TAILABLE = 1 ;
54
54
public const TAILABLE = 2 ;
Original file line number Diff line number Diff line change 31
31
* @see https://mongodb.com/docs/manual/tutorial/query-documents/
32
32
* @see https://mongodb.com/docs/manual/reference/operator/query-modifier/
33
33
*/
34
- class FindOne implements Executable, Explainable
34
+ final class FindOne implements Executable, Explainable
35
35
{
36
36
private Find $ find ;
37
37
Original file line number Diff line number Diff line change 30
30
* @see \MongoDB\Collection::findOneAndDelete()
31
31
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
32
32
*/
33
- class FindOneAndDelete implements Executable, Explainable
33
+ final class FindOneAndDelete implements Executable, Explainable
34
34
{
35
35
private FindAndModify $ findAndModify ;
36
36
Original file line number Diff line number Diff line change 35
35
* @see \MongoDB\Collection::findOneAndReplace()
36
36
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
37
37
*/
38
- class FindOneAndReplace implements Executable, Explainable
38
+ final class FindOneAndReplace implements Executable, Explainable
39
39
{
40
40
public const RETURN_DOCUMENT_BEFORE = 1 ;
41
41
public const RETURN_DOCUMENT_AFTER = 2 ;
Original file line number Diff line number Diff line change 34
34
* @see \MongoDB\Collection::findOneAndUpdate()
35
35
* @see https://mongodb.com/docs/manual/reference/command/findAndModify/
36
36
*/
37
- class FindOneAndUpdate implements Executable, Explainable
37
+ final class FindOneAndUpdate implements Executable, Explainable
38
38
{
39
39
public const RETURN_DOCUMENT_BEFORE = 1 ;
40
40
public const RETURN_DOCUMENT_AFTER = 2 ;
Original file line number Diff line number Diff line change 38
38
* @see \MongoDB\Collection::insertMany()
39
39
* @see https://mongodb.com/docs/manual/reference/command/insert/
40
40
*/
41
- class InsertMany implements Executable
41
+ final class InsertMany implements Executable
42
42
{
43
43
/** @var list<object|array> */
44
44
private array $ documents ;
Original file line number Diff line number Diff line change 36
36
* @see \MongoDB\Collection::insertOne()
37
37
* @see https://mongodb.com/docs/manual/reference/command/insert/
38
38
*/
39
- class InsertOne implements Executable
39
+ final class InsertOne implements Executable
40
40
{
41
41
private array |object $ document ;
42
42
Original file line number Diff line number Diff line change 30
30
* @see \MongoDB\Database::listCollectionNames()
31
31
* @see https://mongodb.com/docs/manual/reference/command/listCollections/
32
32
*/
33
- class ListCollectionNames implements Executable
33
+ final class ListCollectionNames implements Executable
34
34
{
35
35
private ListCollectionsCommand $ listCollections ;
36
36
Original file line number Diff line number Diff line change 30
30
* @see \MongoDB\Database::listCollections()
31
31
* @see https://mongodb.com/docs/manual/reference/command/listCollections/
32
32
*/
33
- class ListCollections implements Executable
33
+ final class ListCollections implements Executable
34
34
{
35
35
private ListCollectionsCommand $ listCollections ;
36
36
Original file line number Diff line number Diff line change 33
33
* @see \MongoDB\Client::listDatabaseNames()
34
34
* @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases
35
35
*/
36
- class ListDatabaseNames implements Executable
36
+ final class ListDatabaseNames implements Executable
37
37
{
38
38
private ListDatabasesCommand $ listDatabases ;
39
39
Original file line number Diff line number Diff line change 31
31
* @see \MongoDB\Client::listDatabases()
32
32
* @see https://mongodb.com/docs/manual/reference/command/listDatabases/#mongodb-dbcommand-dbcmd.listDatabases`
33
33
*/
34
- class ListDatabases implements Executable
34
+ final class ListDatabases implements Executable
35
35
{
36
36
private ListDatabasesCommand $ listDatabases ;
37
37
Original file line number Diff line number Diff line change 36
36
* @see \MongoDB\Collection::listIndexes()
37
37
* @see https://mongodb.com/docs/manual/reference/command/listIndexes/
38
38
*/
39
- class ListIndexes implements Executable
39
+ final class ListIndexes implements Executable
40
40
{
41
41
private const ERROR_CODE_DATABASE_NOT_FOUND = 60 ;
42
42
private const ERROR_CODE_NAMESPACE_NOT_FOUND = 26 ;
Original file line number Diff line number Diff line change 35
35
* @see \MongoDB\Collection::listSearchIndexes()
36
36
* @see https://mongodb.com/docs/manual/reference/command/listSearchIndexes/
37
37
*/
38
- class ListSearchIndexes implements Executable
38
+ final class ListSearchIndexes implements Executable
39
39
{
40
40
private array $ listSearchIndexesOptions ;
41
41
private array $ aggregateOptions ;
Original file line number Diff line number Diff line change 54
54
* @see https://mongodb.com/docs/manual/reference/command/mapReduce/
55
55
* @psalm-import-type MapReduceCallable from MapReduceResult
56
56
*/
57
- class MapReduce implements Executable
57
+ final class MapReduce implements Executable
58
58
{
59
59
private array |object |string $ out ;
60
60
Original file line number Diff line number Diff line change 33
33
* @see \MongoDB\Database::modifyCollection()
34
34
* @see https://mongodb.com/docs/manual/reference/command/collMod/
35
35
*/
36
- class ModifyCollection implements Executable
36
+ final class ModifyCollection implements Executable
37
37
{
38
38
/**
39
39
* Constructs a collMod command.
Original file line number Diff line number Diff line change 36
36
* @see \MongoDB\Database::renameCollection()
37
37
* @see https://mongodb.com/docs/manual/reference/command/renameCollection/
38
38
*/
39
- class RenameCollection implements Executable
39
+ final class RenameCollection implements Executable
40
40
{
41
41
private string $ fromNamespace ;
42
42
Original file line number Diff line number Diff line change 34
34
* @see \MongoDB\Collection::replaceOne()
35
35
* @see https://mongodb.com/docs/manual/reference/command/update/
36
36
*/
37
- class ReplaceOne implements Executable
37
+ final class ReplaceOne implements Executable
38
38
{
39
39
private Update $ update ;
40
40
Original file line number Diff line number Diff line change 32
32
* @see \MongoDB\Collection::updateMany()
33
33
* @see https://mongodb.com/docs/manual/reference/command/update/
34
34
*/
35
- class UpdateMany implements Executable, Explainable
35
+ final class UpdateMany implements Executable, Explainable
36
36
{
37
37
private Update $ update ;
38
38
Original file line number Diff line number Diff line change 32
32
* @see \MongoDB\Collection::updateOne()
33
33
* @see https://mongodb.com/docs/manual/reference/command/update/
34
34
*/
35
- class UpdateOne implements Executable, Explainable
35
+ final class UpdateOne implements Executable, Explainable
36
36
{
37
37
private Update $ update ;
38
38
Original file line number Diff line number Diff line change 31
31
* @see \MongoDB\Collection::updateSearchIndexes()
32
32
* @see https://mongodb.com/docs/manual/reference/command/updateSearchIndexes/
33
33
*/
34
- class UpdateSearchIndex implements Executable
34
+ final class UpdateSearchIndex implements Executable
35
35
{
36
36
private object $ definition ;
37
37
Original file line number Diff line number Diff line change 57
57
* @see \MongoDB\Collection::watch()
58
58
* @see https://mongodb.com/docs/manual/changeStreams/
59
59
*/
60
- class Watch implements Executable, /* @internal */ CommandSubscriber
60
+ final class Watch implements Executable, /* @internal */ CommandSubscriber
61
61
{
62
62
public const FULL_DOCUMENT_DEFAULT = 'default ' ;
63
63
public const FULL_DOCUMENT_UPDATE_LOOKUP = 'updateLookup ' ;
You can’t perform that action at this time.
0 commit comments