src/Search.php
private function getEndpoint($type)
    {
        if (!array_key_exists($type, $this->endpoints)) {
            $this->endpoints[$type] = SearchEndpointFactory::get($type);
        }

        return $this->endpoints[$type];
    }
private function getEndpoint($type)
    {
        if (!array_key_exists($type, $this->endpoints)) {
            $this->endpoints[$type] = SearchEndpointFactory::get($type);
        }

        return $this->endpoints[$type];
    }
private function getEndpoint ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> endpoints ) ) { $ this -> endpoints [ $ type ] = SearchEndpointFactory :: get ( $ type ) ; } return $ this -> endpoints [ $ type ] ; }
Returns endpoint instance.

@param string $type Endpoint type.

@return SearchEndpointInterface
Returns endpoint instance .