for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace NaokiTsuchiya\YiiRouteList;
use CAction;
use CController;
use CUrlRule;
/** @psalm-immutable */
final class Route
{
public CUrlRule $rule;
public CController $controller;
public ?CAction $action;
public function __construct(
CUrlRule $rule,
CController $controller,
?CAction $action = null
) {
$this->rule = $rule;
$this->controller = $controller;
$this->action = $action;
}