Adamgoose\Routing\Annotations\EndpointTrait::getMethodForPath PHP Method

getMethodForPath() public method

Get the controller method for the given endpoint path.
public getMethodForPath ( AbstractPath $path ) : string
$path AbstractPath
return string
    public function getMethodForPath(AbstractPath $path)
    {
        return $path->method;
    }