ARouter  0.1.0
Annotation based router for your projects
RouteMatch Class Reference

Public Member Functions

 __construct (RouteMapping $routeMapping, ServerRequestInterface $request, array $pathArguments)
 
 getRouteMapping ()
 
 getRequest ()
 
 getPathArguments ()
 

Detailed Description

Route match.

Represents a match between route mapping and incoming request.

Constructor & Destructor Documentation

◆ __construct()

__construct ( RouteMapping  $routeMapping,
ServerRequestInterface  $request,
array  $pathArguments 
)

RouteMatch constructor.

Parameters
\ARouter\Routing\RouteMapping$routeMappingRoute mapping.
\Psr\Http\Message\ServerRequestInterface$requestRequest object.
array$pathArgumentsMatched path arguments.

Member Function Documentation

◆ getPathArguments()

getPathArguments ( )

Get matched path arguments.

Returns
array Matched path arguments.

◆ getRequest()

getRequest ( )

Get request object.

Returns
Request object.

◆ getRouteMapping()

getRouteMapping ( )

Get route mapping.

Returns
Route mapping.

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