# QueueCardRenderer

> Renders the typed Queue panel detail view.

[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) › QueueCardRenderer

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

Renders the typed Queue panel detail view.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`renderAsyncHint()`](#method-renderAsyncHint) static | Renders the async-driver hint banner shown above the cards when at least one record was emitted by a driver that runs jobs out of process. | `QueueCardRenderer` |
| [`renderItem()`](#method-renderItem) static | Renders a single job event as an `<article class="yii-debug-queue-card">` ready to drop into the detail view. | `QueueCardRenderer` |

## Method details

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

```php
public static function renderAsyncHint(PHPForge\Debug\Panel\Queue\QueueSummary $summary): UIAwesome\Html\Flow\Div|null
```

Renders the async-driver hint banner shown above the cards when at least one record was emitted by a driver that
runs jobs out of process.

Returns `null` when every record came from a sync driver, so the caller can omit the banner entirely.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$summary` | [`QueueSummary`](/docs/extensions/debug-core/reference/panel/queue/queuesummary/index.md) |  |

**Returns**

[`UIAwesome\Html\Flow\Div`](/docs/extensions/html/reference/flow/div/index.md)`|null`

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

```php
public static function renderItem(PHPForge\Debug\Panel\Queue\JobRecord $record): UIAwesome\Html\Sectioning\Article
```

Renders a single job event as an `<article class="yii-debug-queue-card">` ready to drop into the detail view.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$record` | [`JobRecord`](/docs/extensions/debug-core/reference/panel/queue/jobrecord/index.md) | Typed queue event record. |

**Returns**

[`UIAwesome\Html\Sectioning\Article`](/docs/extensions/html/reference/sectioning/article/index.md)