Lines
0.00%
0 / 2
Functions and Methods
0.00%
0 / 2
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| RegistryCacheSnapshot | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 6 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| toRegistrySnapshot | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Broker; | |
| 6 | ||
| 7 | use Stewart\Runtime\Ipc\Message\RegistrySnapshot; | |
| 8 | use Stewart\Runtime\Ipc\Wire\RegistryFragment; | |
| 9 | ||
| 10 | final readonly class RegistryCacheSnapshot | |
| 11 | { | |
| 12 | public function __construct( | |
| 13 | public RegistryFragment $registry, | |
| 14 | public int $revision, | |
| 15 | ) {} | |
| 16 | ||
| 17 | public function toRegistrySnapshot(): RegistrySnapshot | |
| 18 | { | |
| 19 | return new RegistrySnapshot($this->registry, $this->revision); | |
| 20 | } | |
| 21 | } |