public function resourceClass($name = null)
    {
        if ($name !== null) {
            $this->setResourceClass($name);
        }

        return $this->getResourceClass();
    }
public function resourceClass($name = null)
    {
        if ($name !== null) {
            $this->setResourceClass($name);
        }

        return $this->getResourceClass();
    }
public function resourceClass ( $ name = null ) { if ( $ name !== null ) { $ this -> setResourceClass ( $ name ) ; } return $ this -> getResourceClass ( ) ; }
Returns the class used to hydrate resources for this endpoint or sets a new one

@param string|null $name the name of the class to use
@throws \Muffin\Webservice\Exception\MissingResourceClassException when the entity class cannot be found
@return string
@deprecated 2.0.0 Use setResourceClassName() and getResourceClassName() instead.
Returns the class used to hydrate resources for this endpoint or sets a new one