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

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

Details

__construct(mixed $matchedValue, RouteTags $tags = null, RouteLifetime $lifetime = null)

No description

Parameters

mixed $matchedValue
RouteTags $tags
RouteLifetime $lifetime

mixed getMatchedValue()

The actual matched value of the respective Route Part

Return Value

mixed

bool hasTags()

Whether this result is tagged

Return Value

bool

RouteTags|null getTags()

RouteTags to be associated with the MatchResult, or NULL

Return Value

RouteTags|null

bool hasLifetime()

Whether this has a lifetime

Return Value

bool

RouteLifetime|null getLifetime()

RouteLifetime to be associated with the MatchResult, or NULL

Return Value

RouteLifetime|null