1 | <?php |
||
13 | final class Client extends MongoClient |
||
14 | { |
||
15 | /** @var DataCollectorLoggerInterface */ |
||
16 | private $logger; |
||
17 | |||
18 | /** |
||
19 | * Client constructor. |
||
20 | * |
||
21 | * @param string $uri |
||
22 | * @param array $uriOptions |
||
23 | * @param array $driverOptions |
||
24 | * @param DataCollectorLoggerInterface $logger |
||
25 | */ |
||
26 | 3 | public function __construct($uri = 'mongodb://localhost:27017', array $uriOptions = [], array $driverOptions = [], DataCollectorLoggerInterface $logger) |
|
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 3 | public function selectDatabase($databaseName, array $options = []) |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 1 | public function selectCollection($databaseName, $collectionName, array $options = []) |
|
56 | } |
||
57 |