ActionRouteRow
API reference › Debug Core › Panel › Router › ActionRouteRow
Typed view-model for one row in the Action Routes table.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$action readonly constructor | string | Action FQCN used as the table key (for example, app\). | ActionRouteRow |
$count readonly constructor | int | Number of rules tested before the match, or 0 when no rule was tested. | ActionRouteRow |
$route readonly constructor | string | Route that resolves to the action (for example, site/index). | ActionRouteRow |
$rule readonly constructor | string | First rule that matched the route, or '' when no rule was tested or none matched. | ActionRouteRow |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates an Action Routes table row. | ActionRouteRow |
from() static | Narrows the loose array shape ($actionRoutes->routes[$action]) into a typed row. | ActionRouteRow |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $action, string $route, string $rule, int $count)Creates an Action Routes table row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$action | string | |
$route | string | |
$rule | string | |
$count | int |
from()
Section titled “from() ”public static function from(string $action, array<string, mixed> $row): selfNarrows the loose array shape ($actionRoutes->routes[$action]) into a typed row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$action | string | Action FQCN used as the row key. |
$row | array<string, | Source row. |
Returns
self