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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| TopicEvent | 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\Topic; | |
| 6 | ||
| 7 | use Stewart\Contracts\App\AppId; | |
| 8 | use Stewart\Contracts\Time\Instant; | |
| 9 | ||
| 10 | final readonly class TopicEvent | |
| 11 | { | |
| 12 | /** @param array<array-key, mixed>|scalar|null $payload */ | |
| 13 | public function __construct( | |
| 14 | public string $topic, | |
| 15 | public bool|int|float|string|array|null $payload, | |
| 16 | public ?AppId $publisher, | |
| 17 | public Instant $publishedAt, | |
| 18 | ) {} | |
| 19 | } |