src/MongoDriver/Actions/MongoDriverAction.php
function setClient($clientName, MongoDB\Client $clientMongo)
    {
        if ($this->hasClient($clientName))
            throw new \Exception(sprintf('Client with name (%s) already exists and cant be replaced.', $clientName));


        $this->clients[$clientName] = $clientMongo;
        return $this;
    }
function setClient($clientName, MongoDB\Client $clientMongo)
    {
        if ($this->hasClient($clientName))
            throw new \Exception(sprintf('Client with name (%s) already exists and cant be replaced.', $clientName));


        $this->clients[$clientName] = $clientMongo;
        return $this;
    }
function setClient ( $ clientName , MongoDB \ Client $ clientMongo ) { if ( $ this -> hasClient ( $ clientName ) ) throw new \ Exception ( sprintf ( 'Client with name (%s) already exists and cant be replaced.' , $ clientName ) ) ; $ this -> clients [ $ clientName ] = $ clientMongo ; return $ this ; }
Add Client Connection

Options:
'db' => (string) default database to query on

@param string         $clientName
@param MongoDB\Client $clientMongo

@return $this
@throws \Exception
Add Client Connection