PHP Класс Webiny\Component\Router\Matcher\MatchedRoute

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

getCallback() публичный Метод

Get callback of the matched route
public getCallback ( ) : string
Результат string

getParams() публичный Метод

Get params extracted from the matched route.
public getParams ( ) : array
Результат array

getRoute() публичный Метод

Returns the Route instance.
public getRoute ( ) : Route
Результат Webiny\Component\Router\Route\Route

hasTags() публичный Метод

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.
Результат boolean