Alcaeus\MongoDbAdapter\Tests\TestCase::getClient PHP Метод

getClient() защищенный метод

protected getClient ( array | null $options = null, $uri = 'mongodb://localhost' ) : MongoClient
$options array | null
Результат MongoClient
    protected function getClient($options = null, $uri = 'mongodb://localhost')
    {
        $args = [$uri];
        if ($options !== null) {
            $args[] = $options;
        }
        $reflection = new \ReflectionClass('MongoClient');
        return $reflection->newInstanceArgs($args);
    }