private function getClient($clientName)
    {
        if (!array_key_exists($clientName, $this->clients)) {
            throw new InvalidArgumentException(sprintf('The elastica client with name "%s" is not defined', $clientName));
        }

        return $this->clients[$clientName]['reference'];
    }
private function getClient($clientName)
    {
        if (!array_key_exists($clientName, $this->clients)) {
            throw new InvalidArgumentException(sprintf('The elastica client with name "%s" is not defined', $clientName));
        }

        return $this->clients[$clientName]['reference'];
    }
private function getClient ( $ clientName ) { if ( ! array_key_exists ( $ clientName , $ this -> clients ) ) { throw new InvalidArgumentException ( sprintf ( 'The elastica client with name "%s" is not defined' , $ clientName ) ) ; } return $ this -> clients [ $ clientName ] [ 'reference' ] ; }
Returns a reference to a client given its configured name.

@param string $clientName

@return Reference

@throws InvalidArgumentException
Returns a reference to a client given its configured name .