public function getSearchClient($key)
    {
        if (empty($key) || false === $this->hasSearchClient($key)) {
            throw ClientException::clientNotFound($key);
        }
        return $this->searchClients[$key];
    }
public function getSearchClient($key)
    {
        if (empty($key) || false === $this->hasSearchClient($key)) {
            throw ClientException::clientNotFound($key);
        }
        return $this->searchClients[$key];
    }
public function getSearchClient ( $ key ) { if ( empty ( $ key ) || false === $ this -> hasSearchClient ( $ key ) ) { throw ClientException :: clientNotFound ( $ key ) ; } return $ this -> searchClients [ $ key ] ; }
Gets a Search Client service by key.

@param   string  $key
@return  ClientInterface
@throws  ClientException  If the service was not found.
Gets a Search Client service by key .