Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ExposedEntitySnapshot | 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 Stewart\Contracts\Exposure; | |
| 6 | ||
| 7 | use Stewart\Contracts\Entity\EntityId; | |
| 8 | ||
| 9 | final readonly class ExposedEntitySnapshot | |
| 10 | { | |
| 11 | /** @param array<string, mixed> $attributes */ | |
| 12 | public function __construct( | |
| 13 | public EntityId $entityId, | |
| 14 | public ExposedState $state, | |
| 15 | public array $attributes, | |
| 16 | public bool $available, | |
| 17 | ) {} | |
| 18 | } |