protected function setRequestPath($param)
    {
        if($param instanceof Shopify)
        {
            $this->requestPath = $param->getRequestPath();
        }
        elseif(is_string($param) && strpos($param, 'myshopify') != false)
        {
            $this->requestPath = 'https://'. $param . '/admin/';
        }
        else throw new Exception('invalid request path');

        return $this;
    }
protected function setRequestPath($param)
    {
        if($param instanceof Shopify)
        {
            $this->requestPath = $param->getRequestPath();
        }
        elseif(is_string($param) && strpos($param, 'myshopify') != false)
        {
            $this->requestPath = 'https://'. $param . '/admin/';
        }
        else throw new Exception('invalid request path');

        return $this;
    }
protected function setRequestPath ( $ param ) { if ( $ param instanceof Shopify ) { $ this -> requestPath = $ param -> getRequestPath ( ) ; } elseif ( is_string ( $ param ) && strpos ( $ param , 'myshopify' ) != false ) { $ this -> requestPath = 'https://' . $ param . '/admin/' ; } else throw new Exception ( 'invalid request path' ) ; return $ this ; }
Set the request path of the API call


@param mixed, Shopify object, string myshopify domain
@return $this
@throws Exception
Set the request path of the API call