Skip to content

Commit 6614f4d

Browse files
committed
Executable interface for operations
1 parent 975db3d commit 6614f4d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Operation/Executable.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace MongoDB\Operation;
4+
5+
use MongoDB\Driver\Server;
6+
7+
/**
8+
* Executable interface for operation classes.
9+
*
10+
* @api
11+
*/
12+
interface Executable
13+
{
14+
/**
15+
* Execute the operation.
16+
*
17+
* @param Server $server
18+
* @return mixed
19+
*/
20+
public function execute(Server $server);
21+
}

0 commit comments

Comments
 (0)