final class AllowedObjectsContainer extends SplObjectStorage (View source)

A container for the list of allowed objects to be persisted during this request.

Properties

protected bool $checkNext

Methods

void
checkNext(bool $checkNext = true)

Set the internal flag to return true for shouldCheck() on the next invocation.

bool
shouldCheck()

Returns true if allowed objects should be checked this time and resets the internal flag to false, so the next call will return false unless checkNext(true) is called again.

Details

void checkNext(bool $checkNext = true)

Set the internal flag to return true for shouldCheck() on the next invocation.

Parameters

bool $checkNext

Return Value

void

bool shouldCheck()

Returns true if allowed objects should be checked this time and resets the internal flag to false, so the next call will return false unless checkNext(true) is called again.

Return Value

bool