# RouteBadge

> Adapter-provided routing configuration badge.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Request](/docs/extensions/debug-core/reference/panel/request/index.md) › [Routing](/docs/extensions/debug-core/reference/panel/request/routing/index.md) › RouteBadge

| final readonly class | `PHPForge\Debug\Panel\Request\Routing\RouteBadge` |
| --- | --- |
| Source | [`src/Panel/Request/Routing/RouteBadge.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Request/Routing/RouteBadge.php#L10) |

Adapter-provided routing configuration badge.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-label"></span>`$label` readonly constructor | `string` | Badge label. | `RouteBadge` |
| <span id="property-variant"></span>`$variant` readonly constructor | `string` | Badge variant, defaults to 'muted'. Default: `'muted'`. | `RouteBadge` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a routing configuration badge. | `RouteBadge` |

## Method details

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

```php
public function __construct(string $label, string $variant = 'muted')
```

Creates a routing configuration badge.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` | Badge label. |
| `$variant` | `string` | Badge variant, defaults to 'muted'. |