PHP Class Webiny\Component\Router\Matcher\MatchedRoute

Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Route $route, array $params )
getCallback ( ) : string Get callback of the matched route
getParams ( ) : array Get params extracted from the matched route.
getRoute ( ) : Route Returns the Route instance.
hasTags ( array $tags, boolean $matchAll = true ) : boolean Checks if the current matched route has the given tags.

Method Details

__construct() public méthode

public __construct ( Route $route, array $params )
$route Webiny\Component\Router\Route\Route Matched Route instance.
$params array Params extracted from the matched route.

getCallback() public méthode

Get callback of the matched route
public getCallback ( ) : string
Résultat string

getParams() public méthode

Get params extracted from the matched route.
public getParams ( ) : array
Résultat array

getRoute() public méthode

Returns the Route instance.
public getRoute ( ) : Route
Résultat Webiny\Component\Router\Route\Route

hasTags() public méthode

Checks if the current matched route has the given tags.
public hasTags ( array $tags, boolean $matchAll = true ) : boolean
$tags array List of tags to match.
$matchAll boolean Match all, or only one of the tags.
Résultat boolean