| 1 | <?php |
||
| 15 | final class MongoClient implements MongoClientInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var \MongoDB\Driver\Manager |
||
| 19 | */ |
||
| 20 | private $driverManager; |
||
| 21 | |||
| 22 | public function __construct($uri = 'mongodb://127.0.0.1', $uriOptions = [], $driverOptions = []) |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $namespace |
||
| 30 | * @param array|object $filter |
||
| 31 | * @param array $queryOptions |
||
| 32 | * @return string[] |
||
| 33 | * |
||
| 34 | * @throws \MongoDB\Driver\Exception\Exception |
||
| 35 | * @throws \MongoDB\Driver\Exception\AuthenticationException if authentication is needed and fails |
||
| 36 | * @throws \MongoDB\Driver\Exception\ConnectionException if connection to the server fails for other then authentication reasons |
||
| 37 | * @throws \MongoDB\Driver\Exception\RuntimeException on other errors (invalid command, command arguments, ...) |
||
| 38 | */ |
||
| 39 | public function executeQuery($namespace, $filter, $queryOptions = array()) |
||
| 45 | } |
||
| 46 |