RestRouteGenerator
in package
Class RestRouteGenerator
Table of Contents
Properties
- $controller : string
- $method : string
Methods
- __construct() : mixed
- RestRouteGenerator constructor.
- generate() : array<string|int, mixed>
- getController() : string
- getMethod() : string
Properties
$controller
private
string
$controller
The controller class
$method
private
string
$method
The method
Tags
Methods
__construct()
RestRouteGenerator constructor.
public
__construct(string $method, string $controller) : mixed
Parameters
- $method : string
- $controller : string
generate()
public
generate() : array<string|int, mixed>
Return values
array<string|int, mixed>getController()
public
getController() : string
Return values
stringgetMethod()
public
getMethod() : string