MatchResult
final class MatchResult (View source)
The result of a RoutePartInterface::match() call if the corresponding Route Part matched
Methods
__construct(mixed $matchedValue, RouteTags $tags = null, RouteLifetime $lifetime = null)
No description
mixed
getMatchedValue()
The actual matched value of the respective Route Part
bool
hasTags()
Whether this result is tagged
bool
hasLifetime()
Whether this has a lifetime
RouteLifetime|null
getLifetime()
RouteLifetime to be associated with the MatchResult, or NULL
Details
__construct(mixed $matchedValue, RouteTags $tags = null, RouteLifetime $lifetime = null)
No description
mixed
getMatchedValue()
The actual matched value of the respective Route Part
bool
hasTags()
Whether this result is tagged
RouteTags|null
getTags()
RouteTags to be associated with the MatchResult, or NULL
bool
hasLifetime()
Whether this has a lifetime
RouteLifetime|null
getLifetime()
RouteLifetime to be associated with the MatchResult, or NULL