Executable.php 462 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
<?php

namespace MongoDB\Operation;

use MongoDB\Driver\Server;

/**
 * Executable interface for operation classes.
 *
10 11 12 13
 * This interface is reserved for internal use until PHPC-378 is implemented,
 * since execute() should ultimately be changed to use ServerInterface.
 *
 * @internal
14 15 16 17 18 19 20 21 22 23 24
 */
interface Executable
{
    /**
     * Execute the operation.
     *
     * @param Server $server
     * @return mixed
     */
    public function execute(Server $server);
}