ARouter  0.1.0
Annotation based router for your projects
All Data Structures Functions Variables Modules Pages
RouteMapping Class Reference

Public Member Functions

 __construct ($path, $controller, $method, $annotations=[])
 
 getPath ()
 
 getController ()
 
 getMethod ()
 
 getAnnotations ()
 

Detailed Description

Mapping between route path and associated controller action method.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $path,
  $controller,
  $method,
  $annotations = [] 
)

RouteMapping constructor.

Parameters
string$pathRoute path.
string$controllerName of the controller class.
string$methodName of the controller method.
array$annotationsAnnotations on the method

Member Function Documentation

◆ getAnnotations()

getAnnotations ( )

Get annotations on the controller's method.

Returns
object[] Annotations on the controller's method.

◆ getController()

getController ( )

Get name of the controller class.

Returns
string Name of the controller class.

◆ getMethod()

getMethod ( )

Get name of the controller method.

Returns
string Name of the controller method.

◆ getPath()

getPath ( )

Get route path.

Returns
string Route path.

The documentation for this class was generated from the following file: