Onceable
interface Onceable
Methods
bool
shouldResolveOnce()
Determine if the prop should be resolved only once.
bool
shouldBeRefreshed()
Determine if the prop was marked as fresh.
string|null
getKey()
Get the custom key for resolving the once prop.
int|null
expiresAt()
Get the expiration timestamp in milliseconds for the once prop.
Details
at line 17
Onceable
once(bool $value = true)
Mark the prop to be resolved only once.
at line 22
bool
shouldResolveOnce()
Determine if the prop should be resolved only once.
at line 27
bool
shouldBeRefreshed()
Determine if the prop was marked as fresh.
at line 32
string|null
getKey()
Get the custom key for resolving the once prop.
at line 37
Onceable
as(BackedEnum|UnitEnum|string $key)
Set a custom key for resolving the once prop.
at line 42
Onceable
until(DateTimeInterface|DateInterval|int $delay)
Set the expiration for the once prop.
at line 47
int|null
expiresAt()
Get the expiration timestamp in milliseconds for the once prop.