QueueSummary
API reference › Debug Core › Panel › Queue › QueueSummary
Typed aggregate view-model for the Queue panel detail view.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$records readonly constructor | list<JobRecord> | Captured events in chronological order. | QueueSummary |
Methods
Section titled “Methods”| Method | Description | Defined 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() static | Builds 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 |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(array $records)Creates a Queue panel summary from captured events.
Parameters
| Parameter | Type | Description |
|---|---|---|
$records | array |
componentIds()
Section titled “componentIds() ”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.
fromRecords()
Section titled “fromRecords() ”public static function fromRecords(list<PHPForge\Debug\Panel\Queue\JobRecord> $records): selfBuilds a queue summary from the captured job events.
hasErrors()
Section titled “hasErrors() ”public function hasErrors(): boolReturns whether at least one captured event reported a failure.
Returns
bool
isEmpty()
Section titled “isEmpty() ”public function isEmpty(): boolReturns whether the summary carries no records.
Returns
bool
totalErrors()
Section titled “totalErrors() ”public function totalErrors(): intReturns the number of error events captured.
Returns
int
totalEvents()
Section titled “totalEvents() ”public function totalEvents(): intReturns the total number of captured events across every lifecycle phase.
Returns
int
totalExecuted()
Section titled “totalExecuted() ”public function totalExecuted(): intReturns the number of successfully executed events.
Returns
int
totalPushed()
Section titled “totalPushed() ”public function totalPushed(): intReturns the number of push events captured.
Returns
int