protected function setResourceMembers($resourcePath = null)
    {
        parent::setResourceMembers($resourcePath);

        $this->resource = array_get($this->resourceArray, 0);

        $pos = 1;
        $more = array_get($this->resourceArray, $pos);

        if (!empty($more)) {
            //  This will be the full resource path
            do {
                $this->resource .= '/' . $more;
                $pos++;
                $more = array_get($this->resourceArray, $pos);
            } while (!empty($more));
        }

        return $this;
    }
protected function setResourceMembers($resourcePath = null)
    {
        parent::setResourceMembers($resourcePath);

        $this->resource = array_get($this->resourceArray, 0);

        $pos = 1;
        $more = array_get($this->resourceArray, $pos);

        if (!empty($more)) {
            //  This will be the full resource path
            do {
                $this->resource .= '/' . $more;
                $pos++;
                $more = array_get($this->resourceArray, $pos);
            } while (!empty($more));
        }

        return $this;
    }
protected function setResourceMembers ( $ resourcePath = null ) { parent :: setResourceMembers ( $ resourcePath ) ; $ this -> resource = array_get ( $ this -> resourceArray , 0 ) ; $ pos = 1 ; $ more = array_get ( $ this -> resourceArray , $ pos ) ; if ( ! empty ( $ more ) ) { //  This will be the full resource path do { $ this -> resource .= '/' . $ more ; $ pos ++ ; $ more = array_get ( $ this -> resourceArray , $ pos ) ; } while ( ! empty ( $ more ) ) ; } return $ this ; }
Apply the commonly used REST path members to the class.

@param string $resourcePath

@return $this
Apply the commonly used REST path members to the class .