chore: complete update
This commit is contained in:
15
src/Framework/Router/Result/JsonResult.php
Normal file
15
src/Framework/Router/Result/JsonResult.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Router\Result;
|
||||
|
||||
use App\Framework\Http\Status;
|
||||
use App\Framework\Router\ActionResult;
|
||||
|
||||
final class JsonResult implements ActionResult
|
||||
{
|
||||
public function __construct(
|
||||
public readonly array $data,
|
||||
public Status $status = Status::OK,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user