# QueuePill

> Builds the driver and lifecycle-status pills shared by the Queue card and grid views.

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

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

Builds the driver and lifecycle-status pills shared by the Queue card and grid views.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`driver()`](#method-driver) static | Builds the driver pill, tagging out-of-process drivers with the `is-async` modifier and keeping the driver class in a `title` tooltip. | `QueuePill` |
| [`status()`](#method-status) static | Builds the lifecycle-status pill from [`JobRecord::EVENT_VARIANTS`](/docs/extensions/debug-core/reference/panel/queue/jobrecord/index.md#const-EVENT_VARIANTS), falling back to the queued state for unknown event types. | `QueuePill` |

## Method details

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

```php
public static function driver(PHPForge\Debug\Panel\Queue\JobRecord $record): UIAwesome\Html\Phrasing\Span
```

Builds the driver pill, tagging out-of-process drivers with the `is-async` modifier and keeping the driver
class in a `title` tooltip.

**Parameters**

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

**Returns**

[`UIAwesome\Html\Phrasing\Span`](/docs/extensions/html/reference/phrasing/span/index.md): Driver pill element.

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

```php
public static function status(PHPForge\Debug\Panel\Queue\JobRecord $record): UIAwesome\Html\Phrasing\Span
```

Builds the lifecycle-status pill from [`JobRecord::EVENT_VARIANTS`](/docs/extensions/debug-core/reference/panel/queue/jobrecord/index.md#const-EVENT_VARIANTS), falling back to the queued state for
unknown event types.

**Parameters**

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

**Returns**

[`UIAwesome\Html\Phrasing\Span`](/docs/extensions/html/reference/phrasing/span/index.md): Status pill element.