interface Onceable

Methods

once(bool $value = true)

Mark the prop to be resolved only once.

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.

as(BackedEnum|UnitEnum|string $key)

Set a custom key for resolving the once prop.

until(DateTimeInterface|DateInterval|int $delay)

Set the expiration for 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.

Parameters

bool $value

Return Value

Onceable

at line 22
bool shouldResolveOnce()

Determine if the prop should be resolved only once.

Return Value

bool

at line 27
bool shouldBeRefreshed()

Determine if the prop was marked as fresh.

Return Value

bool

at line 32
string|null getKey()

Get the custom key for resolving the once prop.

Return Value

string|null

at line 37
Onceable as(BackedEnum|UnitEnum|string $key)

Set a custom key for resolving the once prop.

Parameters

BackedEnum|UnitEnum|string $key

Return Value

Onceable

at line 42
Onceable until(DateTimeInterface|DateInterval|int $delay)

Set the expiration for the once prop.

Parameters

DateTimeInterface|DateInterval|int $delay

Return Value

Onceable

at line 47
int|null expiresAt()

Get the expiration timestamp in milliseconds for the once prop.

Return Value

int|null