PHP 클래스 Webiny\Component\Router\Matcher\MatchedRoute

파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__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