Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
RouteAction | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Mvc; |
6 | |
7 | use PeServer\Core\Http\HttpStatus; |
8 | use PeServer\Core\Mvc\ControllerBase; |
9 | |
10 | /** |
11 | * ルーティングのアクション設定。 |
12 | */ |
13 | readonly class RouteAction |
14 | { |
15 | /** |
16 | * 生成。 |
17 | * |
18 | * @param HttpStatus $status |
19 | * @param class-string<ControllerBase> $className |
20 | * @param ActionSetting $actionSetting |
21 | * @param array<non-empty-string,string> $params パラメータ。 |
22 | */ |
23 | public function __construct( |
24 | public HttpStatus $status, |
25 | public string $className, |
26 | public ActionSetting $actionSetting, |
27 | public array $params |
28 | ) { |
29 | } |
30 | } |