class AstVisitorRegistry mixin SplPriorityQueue

Registry of AST visitors used during proxy class generation.

Properties

static protected SplPriorityQueue|null $queue
static protected array<int, string> $values

Methods

static mixed
__callStatic(string $name, array $arguments)

Delegate unknown static calls to the underlying priority queue.

static bool
insert(string $value, int $priority = 0)

Insert a visitor class name with optional priority.

static bool
exists(string $value)

Determine if a visitor class has been registered.

getQueue()

Get the priority queue of registered visitors.

static void
flushState()

Flush all static state.

Details

at line 27
static mixed __callStatic(string $name, array $arguments)

Delegate unknown static calls to the underlying priority queue.

Parameters

string $name
array $arguments

Return Value

mixed

at line 42
static bool insert(string $value, int $priority = 0)

Insert a visitor class name with optional priority.

Boot-only. Visitor registrations persist in a static queue for the worker lifetime and are used by proxy generation.

Parameters

string $value
int $priority

Return Value

bool

at line 51
static bool exists(string $value)

Determine if a visitor class has been registered.

Parameters

string $value

Return Value

bool

at line 59
static SplPriorityQueue getQueue()

Get the priority queue of registered visitors.

Return Value

SplPriorityQueue

at line 70
static void flushState()

Flush all static state.

Return Value

void