public function setResourceClass($name)
    {
        $this->_resourceClass = App::className($name, 'Model/Resource');

        if (!$this->_resourceClass) {
            throw new MissingResourceClassException([$name]);
        }

        return $this;
    }
public function setResourceClass($name)
    {
        $this->_resourceClass = App::className($name, 'Model/Resource');

        if (!$this->_resourceClass) {
            throw new MissingResourceClassException([$name]);
        }

        return $this;
    }
public function setResourceClass ( $ name ) { $ this -> _resourceClass = App :: className ( $ name , 'Model/Resource' ) ; if ( ! $ this -> _resourceClass ) { throw new MissingResourceClassException ( [ $ name ] ) ; } return $ this ; }
Set the resource class name used to hydrate resources for this endpoint

@param string $name Name of the class to use
@return $this
@throws \Muffin\Webservice\Exception\MissingResourceClassException If the resource class specified does not exist
Set the resource class name used to hydrate resources for this endpoint