src/Client.php
public function getConnectionById($connectionID)
    {
        if (!$this->connection instanceof AggregateConnectionInterface) {
            throw new NotSupportedException(
                'Retrieving connections by ID is supported only by aggregate connections.'
            );
        }

        return $this->connection->getConnectionById($connectionID);
    }
public function getConnectionById($connectionID)
    {
        if (!$this->connection instanceof AggregateConnectionInterface) {
            throw new NotSupportedException(
                'Retrieving connections by ID is supported only by aggregate connections.'
            );
        }

        return $this->connection->getConnectionById($connectionID);
    }
public function getConnectionById ( $ connectionID ) { if ( ! $ this -> connection instanceof AggregateConnectionInterface ) { throw new NotSupportedException ( 'Retrieving connections by ID is supported only by aggregate connections.' ) ; } return $ this -> connection -> getConnectionById ( $ connectionID ) ; }
Retrieves the specified connection from the aggregate connection when the
client is in cluster or replication mode.

@param string $connectionID Index or alias of the single connection.

@throws NotSupportedException

@return Connection\NodeConnectionInterface
Retrieves the specified connection from the aggregate connection when the client is in cluster or replication mode .