Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ServiceResponse | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Service; | |
| 6 | ||
| 7 | use Stewart\Contracts\State\EventContext; | |
| 8 | ||
| 9 | final readonly class ServiceResponse | |
| 10 | { | |
| 11 | /** @param array<string, mixed> $response */ | |
| 12 | public function __construct( | |
| 13 | public string $domain, | |
| 14 | public string $service, | |
| 15 | public array $response = [], | |
| 16 | public ?EventContext $context = null, | |
| 17 | ) {} | |
| 18 | } |