Lines
100.00%
2 / 2
Methods
100.00%
2 / 2
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| withLaterChange | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 8 | final readonly class ExposedStateChange | |
| 9 | { | |
| 10 | /** @param array<string, mixed>|null $attributes */ | |
| 11 | public function __construct( | |
| 12 | public ?ExposedState $state = null, | |
| 13 | public ?array $attributes = null, | |
| 14 | public ?bool $available = null, | |
| 15 | ) {} | |
| 16 | ||
| 17 | public function withLaterChange(self $later): self | |
| 18 | { | |
| 19 | return new self($later->state ?? $this->state, $later->attributes ?? $this->attributes, $later->available ?? $this->available); | |
| 20 | } | |
| 21 | } |