public function create($queryType, $queryParams = [])
    {
        if (!isset($this->factories[$queryType])) {
            throw new \LogicException("No factory found for query of type {$queryType}");
        }

        return $this->factories[$queryType]->create($queryParams);
    }
public function create($queryType, $queryParams = [])
    {
        if (!isset($this->factories[$queryType])) {
            throw new \LogicException("No factory found for query of type {$queryType}");
        }

        return $this->factories[$queryType]->create($queryParams);
    }
public function create ( $ queryType , $ queryParams = [ ] ) { if ( ! isset ( $ this -> factories [ $ queryType ] ) ) { throw new \ LogicException ( "No factory found for query of type {$queryType}" ) ; } return $ this -> factories [ $ queryType ] -> create ( $ queryParams ) ; }
Create a query from it's type and params.

@param string $queryType   Query type (must be a valid query type defined into the factories array).
@param array  $queryParams Query constructor params.

@return QueryInterface
Create a query from it s type and params .