protected function setQueryController($namespace, $crud_type = 'Read')
    {
        $options = $this->setQueryOptions($crud_type);

        try {
            $this->query = $this->resource->get('query://' . $namespace, $options);

        } catch (Exception $e) {
            throw new RuntimeException($e->getMessage());
        }

        return $this;
    }
protected function setQueryController($namespace, $crud_type = 'Read')
    {
        $options = $this->setQueryOptions($crud_type);

        try {
            $this->query = $this->resource->get('query://' . $namespace, $options);

        } catch (Exception $e) {
            throw new RuntimeException($e->getMessage());
        }

        return $this;
    }
protected function setQueryController ( $ namespace , $ crud_type = 'Read' ) { $ options = $ this -> setQueryOptions ( $ crud_type ) ; try { $ this -> query = $ this -> resource -> get ( 'query://' . $ namespace , $ options ) ; } catch ( Exception $ e ) { throw new RuntimeException ( $ e -> getMessage ( ) ) ; } return $ this ; }
Set Query Controller

@param   string $namespace
@param   string $crud_type

@return  $this
@since   1.0.0
@throws  \CommonApi\Exception\RuntimeException
Set Query Controller