RouteLifetime
final class RouteLifetime (View source)
RouteLifetime to be associated with matched/resolved routes
RouteLifetime can be set by Route Part handlers via the ResolveResult/MatchResult return values The lifetime will be set for the corresponding cache entries. The lowest lifetime is used if multiple are defined.
Methods
Creates an empty instance without a specific lifetime
Creates an instance without an infinite lifetime
Creates an instance without lifetime specified in seconds
Creates an instance with a specific lifetime
Merges two instances of this class combining results by using the lowest lifetime while respecting the special meaning of 0 = infinite and null = undefined
No description
No description
No description
Details
static RouteLifetime
createUndefined()
Creates an empty instance without a specific lifetime
static RouteLifetime
createInfinite()
Creates an instance without an infinite lifetime
static RouteLifetime
createSeconds(int $value)
Creates an instance without lifetime specified in seconds
static RouteLifetime
fromInt(int $value)
Creates an instance with a specific lifetime
RouteLifetime
merge(RouteLifetime $lifetime)
Merges two instances of this class combining results by using the lowest lifetime while respecting the special meaning of 0 = infinite and null = undefined
bool
isUndefined()
No description
bool
isInfinite()
No description
int|null
getValue()
No description