chore: lots of changes
This commit is contained in:
20
src/Framework/Router/ActionResult.php
Normal file
20
src/Framework/Router/ActionResult.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Router;
|
||||
|
||||
use App\Framework\Http\Status;
|
||||
|
||||
final readonly class ActionResult
|
||||
{
|
||||
public function __construct(
|
||||
public ResultType $resultType,
|
||||
public string $template,
|
||||
public array $data = [],
|
||||
public Status $status = Status::OK,
|
||||
public string $layout = '',
|
||||
public array $slots = [],
|
||||
public ?string $controllerClass = null
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user