MatchedRoute
class \
Internal
Table of Contents
Properties
- $hostMatches : array
- $pathMatches : array
- $route : Route
- $routeResult : array
Methods
- __construct() : mixed
- getFallbackScore() : int
- getHostMatchScore() : int
- getPathMatchScore() : int
- getRoute() : Route
- getRouteResult() : array
- getSiteIdentifier() : string
- withHostMatches() : self
- withPathMatches() : self
Properties
$hostMatches
protected
array
$hostMatches
= []
$pathMatches
protected
array
$pathMatches
= []
$route
protected
Route
$route
$routeResult
protected
array
$routeResult
Methods
__construct()
public
__construct(Route $route, array $routeResult) : mixed
Parameters
- $route : Route
- $routeResult : array
getFallbackScore()
public
getFallbackScore() : int
Return values
intgetHostMatchScore()
public
getHostMatchScore() : int
Return values
intgetPathMatchScore()
public
getPathMatchScore(int $index) : int
Parameters
- $index : int
Return values
intgetRoute()
public
getRoute() : Route
Return values
RoutegetRouteResult()
public
getRouteResult() : array
Return values
arraygetSiteIdentifier()
public
getSiteIdentifier() : string
Return values
stringwithHostMatches()
public
withHostMatches(array $hostMatches) : self
Parameters
- $hostMatches : array
Return values
selfwithPathMatches()
public
withPathMatches(array $pathMatches) : self
Parameters
- $pathMatches : array