Skip to content

Commit ed33e0b

Browse files
committed
Make all Operation classes final
1 parent 701b39d commit ed33e0b

38 files changed

+38
-38
lines changed

src/Operation/Aggregate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @see \MongoDB\Collection::aggregate()
5050
* @see https://mongodb.com/docs/manual/reference/command/aggregate/
5151
*/
52-
class Aggregate implements Executable, Explainable
52+
final class Aggregate implements Executable, Explainable
5353
{
5454
private bool $isWrite;
5555

src/Operation/BulkWrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
*
4747
* @see \MongoDB\Collection::bulkWrite()
4848
*/
49-
class BulkWrite implements Executable
49+
final class BulkWrite implements Executable
5050
{
5151
public const DELETE_MANY = 'deleteMany';
5252
public const DELETE_ONE = 'deleteOne';

src/Operation/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @see \MongoDB\Collection::count()
4242
* @see https://mongodb.com/docs/manual/reference/command/count/
4343
*/
44-
class Count implements Executable, Explainable
44+
final class Count implements Executable, Explainable
4545
{
4646
/**
4747
* Constructs a count command.

src/Operation/CountDocuments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @see \MongoDB\Collection::countDocuments()
3838
* @see https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments
3939
*/
40-
class CountDocuments implements Executable
40+
final class CountDocuments implements Executable
4141
{
4242
private array $aggregateOptions;
4343

src/Operation/CreateCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @see \MongoDB\Database::createCollection()
4242
* @see https://mongodb.com/docs/manual/reference/command/create/
4343
*/
44-
class CreateCollection implements Executable
44+
final class CreateCollection implements Executable
4545
{
4646
public const USE_POWER_OF_2_SIZES = 1;
4747
public const NO_PADDING = 2;

src/Operation/CreateIndexes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* @see \MongoDB\Collection::createIndexes()
4242
* @see https://mongodb.com/docs/manual/reference/command/createIndexes/
4343
*/
44-
class CreateIndexes implements Executable
44+
final class CreateIndexes implements Executable
4545
{
4646
private const WIRE_VERSION_FOR_COMMIT_QUORUM = 9;
4747

src/Operation/CreateSearchIndexes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @see \MongoDB\Collection::createSearchIndexes()
3838
* @see https://mongodb.com/docs/manual/reference/command/createSearchIndexes/
3939
*/
40-
class CreateSearchIndexes implements Executable
40+
final class CreateSearchIndexes implements Executable
4141
{
4242
private array $indexes = [];
4343

src/Operation/DatabaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*
3333
* @see \MongoDB\Database::command()
3434
*/
35-
class DatabaseCommand implements Executable
35+
final class DatabaseCommand implements Executable
3636
{
3737
private Command $command;
3838

src/Operation/DeleteMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @see \MongoDB\Collection::deleteOne()
3030
* @see https://mongodb.com/docs/manual/reference/command/delete/
3131
*/
32-
class DeleteMany implements Executable, Explainable
32+
final class DeleteMany implements Executable, Explainable
3333
{
3434
private Delete $delete;
3535

src/Operation/DeleteOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @see \MongoDB\Collection::deleteOne()
3030
* @see https://mongodb.com/docs/manual/reference/command/delete/
3131
*/
32-
class DeleteOne implements Executable, Explainable
32+
final class DeleteOne implements Executable, Explainable
3333
{
3434
private Delete $delete;
3535

0 commit comments

Comments
 (0)