# QueuePanel

> Presents the queue lifecycle events captured during the request as a table with one detail group per event.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Queue](/docs/extensions/debug-core/reference/panel/queue/index.md) › QueuePanel

| final class | `PHPForge\Debug\Panel\Queue\QueuePanel` |
| --- | --- |
| Extends | `PHPForge\Debug\Panel` |
| Source | [`src/Panel/Queue/QueuePanel.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Queue/QueuePanel.php#L21) |

Presents the queue lifecycle events captured during the request as a table with one detail group per event.

The per-job detail route belongs to the adapter, so it supplies one URL per event with [`QueuePanel::jobUrls()`](/docs/extensions/debug-core/reference/panel/queue/queuepanel/index.md#method-jobUrls).

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`jobUrls()`](#method-jobUrls) | Returns a new instance with the adapter-owned per-event detail URLs. | `QueuePanel` |
| [`present()`](#method-present) | Builds the panel view from the decoded queue capture. | `QueuePanel` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-ICON"></span>`ICON` | `\PHPForge\Debug\Panel\Queue\QueueMessage::ID->value` |  | `QueuePanel` |
| <span id="const-ID"></span>`ID` | `\PHPForge\Debug\Panel\Queue\QueueMessage::ID->value` |  | `QueuePanel` |
| <span id="const-TITLE"></span>`TITLE` | `\PHPForge\Debug\Panel\Queue\QueueMessage::TITLE->value` |  | `QueuePanel` |

## Method details

### jobUrls() <span id="method-jobUrls"></span>

```php
public function jobUrls(array<int, string> $urls): self
```

Returns a new instance with the adapter-owned per-event detail URLs.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$urls` | `array<int, string>` | Detail URLs keyed by the event position in capture order. |

**Returns**

`self`: New instance carrying the requested detail URLs.

### present() <span id="method-present"></span>

```php
public function present(array<string, mixed> $data): PHPForge\Debug\PanelView
```

Builds the panel view from the decoded queue capture.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$data` | `array<string, mixed>` | Decoded panel payload with a `records` key holding the captured events. |

**Returns**

[`PanelView`](https://github.com/php-forge/debug/blob/e4fbb8c3238a4d011ceef5e0094344abd50deaf4/src/PanelView.php): Lifecycle table, async hint, and per-event detail groups.