CurrentRouteLogRow
API reference › Debug Core › Panel › Router › CurrentRouteLogRow
Typed row of the Current Route rules-tested log, resolved once from the URL-manager trace.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$match readonly constructor | bool | true when this rule produced the final match; the renderer surfaces the row with a success modifier. | CurrentRouteLogRow |
$parent readonly constructor | string | Parent rule (UrlRule for nested REST rules), or '' when there is no parent. | CurrentRouteLogRow |
$rule readonly constructor | string | Rule name or its class FQCN as captured by the route resolver. | CurrentRouteLogRow |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a row from the current-route rules-tested log. | CurrentRouteLogRow |
fromArray() static | Narrows one persisted rule of the routing payload into a typed row. | CurrentRouteLogRow |
fromLogMessage() static | Narrows one raw URL-manager trace payload, returning null when it does not carry a rule/match pair. | CurrentRouteLogRow |
jsonSerialize() | Returns the typed row for JSON serialization. | CurrentRouteLogRow |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $rule, string $parent, bool $match)Creates a row from the current-route rules-tested log.
Parameters
| Parameter | Type | Description |
|---|---|---|
$rule | string | |
$parent | string | |
$match | bool |
fromArray()
Section titled “fromArray() ”public static function fromArray(mixed $data, string $path): selfNarrows one persisted rule of the routing payload into a typed row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$data | mixed | Persisted rule, expected to be an object carrying the declared shape. |
$path | string | JSON path of the rule, used to report a malformed payload. |
Returns
self: Row carrying the inspected rule, its parent, and the match flag.
fromLogMessage()
Section titled “fromLogMessage() ”public static function fromLogMessage(mixed $message): self|nullNarrows one raw URL-manager trace payload, returning null when it does not carry a rule/match pair.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | mixed | Raw logger payload. |
Returns
self|null
jsonSerialize()
Section titled “jsonSerialize() ”public function jsonSerialize(): array<string, mixed>Returns the typed row for JSON serialization.
Returns
array<string, mixed>