ARouter
0.1.0
Annotation based router for your projects
|
Public Member Functions | |
__construct ($path, $controller, $method, $annotations=[]) | |
getPath () | |
getController () | |
getMethod () | |
getAnnotations () | |
Mapping between route path and associated controller action method.
__construct | ( | $path, | |
$controller, | |||
$method, | |||
$annotations = [] |
|||
) |
RouteMapping constructor.
string | $path | Route path. |
string | $controller | Name of the controller class. |
string | $method | Name of the controller method. |
array | $annotations | Annotations on the method |
getAnnotations | ( | ) |
Get annotations on the controller's method.
getController | ( | ) |
Get name of the controller class.
getMethod | ( | ) |
Get name of the controller method.
getPath | ( | ) |
Get route path.