Dingo\Blueprint\Action::getMethod PHP Method

getMethod() public method

Get the actions method.
public getMethod ( ) : string
return string
    public function getMethod()
    {
        if ($annotation = $this->getAnnotationByType('Method\\Method')) {
            return strtoupper(substr(get_class($annotation), strrpos(get_class($annotation), '\\') + 1));
        }
        throw new RuntimeException('No HTTP method given, invalid API blueprint.');
    }