public function resource($resourceDefinition)
    {
        $parameter = new ResourceParameter($resourceDefinition);
        $parameter->setRoute($this->route);

        $this->parameters[$resourceDefinition] = $parameter;

        return $parameter;
    }
public function resource($resourceDefinition)
    {
        $parameter = new ResourceParameter($resourceDefinition);
        $parameter->setRoute($this->route);

        $this->parameters[$resourceDefinition] = $parameter;

        return $parameter;
    }
public function resource ( $ resourceDefinition ) { $ parameter = new ResourceParameter ( $ resourceDefinition ) ; $ parameter -> setRoute ( $ this -> route ) ; $ this -> parameters [ $ resourceDefinition ] = $ parameter ; return $ parameter ; }
Define the resource that can be sent with the request.
Note that this method will not generate actual parameters, but instead
will let the InputParsers know this resource can be expected.
@param $resourceDefinition
@return ResourceParameter
Define the resource that can be sent with the request . Note that this method will not generate actual parameters but instead will let the InputParsers know this resource can be expected .