Index Documentation

HttpDelete extends HttpRoute
in package

Provides an attribute for marking methods in a class as a DELETE route.

Table of Contents

Methods

__construct()  : mixed
getMethod()  : string
Returns the target method name.
getPath()  : string
Returns the target path.
register()  : void
Reads attributes from methods in a IRouteHandler instance and registers them to a given IRouter instance.

Methods

__construct()

public __construct(string $path) : mixed
Parameters
$path : string

getMethod()

Returns the target method name.

public getMethod() : string
Return values
string

getPath()

Returns the target path.

public getPath() : string
Return values
string

register()

Reads attributes from methods in a IRouteHandler instance and registers them to a given IRouter instance.

public static register(IRouter $router, IRouteHandler $handler) : void
Parameters
$router : IRouter

Router instance.

$handler : IRouteHandler

Handler instance.


        
On this page

Search results