Skip to content
PHP Ecosystem
Explore

QueueSummary

API reference › Debug Core › Panel › Queue › QueueSummary

final readonly classPHPForge\Debug\Panel\Queue\QueueSummary
Sourcesrc/Panel/Queue/QueueSummary.php

Typed aggregate view-model for the Queue panel detail view.

PropertyTypeDescriptionDefined by
$records readonly constructorlist<JobRecord>Captured events in chronological order.QueueSummary
MethodDescriptionDefined by
__construct()Creates a Queue panel summary from captured events.QueueSummary
componentIds()Returns the distinct component ids surfaced across every captured event, in first-seen order.QueueSummary
fromRecords() staticBuilds a queue summary from the captured job events.QueueSummary
hasErrors()Returns whether at least one captured event reported a failure.QueueSummary
isEmpty()Returns whether the summary carries no records.QueueSummary
totalErrors()Returns the number of error events captured.QueueSummary
totalEvents()Returns the total number of captured events across every lifecycle phase.QueueSummary
totalExecuted()Returns the number of successfully executed events.QueueSummary
totalPushed()Returns the number of push events captured.QueueSummary
public function __construct(array $records)

Creates a Queue panel summary from captured events.

Parameters

ParameterTypeDescription
$recordsarray
public function componentIds(): list<string>

Returns the distinct component ids surfaced across every captured event, in first-seen order.

Returns

list<string>: Component ids, deduplicated while preserving order.

public static function fromRecords(list<PHPForge\Debug\Panel\Queue\JobRecord> $records): self

Builds a queue summary from the captured job events.

Parameters

ParameterTypeDescription
$recordslist<JobRecord>Captured job events.

Returns

self

public function hasErrors(): bool

Returns whether at least one captured event reported a failure.

Returns

bool

public function isEmpty(): bool

Returns whether the summary carries no records.

Returns

bool

public function totalErrors(): int

Returns the number of error events captured.

Returns

int

public function totalEvents(): int

Returns the total number of captured events across every lifecycle phase.

Returns

int

public function totalExecuted(): int

Returns the number of successfully executed events.

Returns

int

public function totalPushed(): int

Returns the number of push events captured.

Returns

int