# RouteTraceRow

> One routing rule inspected while resolving the current request.

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

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

One routing rule inspected while resolving the current request.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-matched"></span>`$matched` readonly constructor | `bool` | Whether this rule matched the current request. Default: `false`. | `RouteTraceRow` |
| <span id="property-parent"></span>`$parent` readonly constructor | `string` | Parent rule, if any. Default: `''`. | `RouteTraceRow` |
| <span id="property-rule"></span>`$rule` readonly constructor | `string` | Routing rule inspected. | `RouteTraceRow` |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates a row for an inspected routing rule. | `RouteTraceRow` |

## Method details

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

```php
public function __construct(string $rule, string $parent = '', bool $matched = false)
```

Creates a row for an inspected routing rule.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$rule` | `string` | Routing rule inspected. |
| `$parent` | `string` | Parent rule, if any. |
| `$matched` | `bool` | Whether this rule matched the current request. |