Lines
100.00%
2 / 2
Functions and Methods
100.00%
2 / 2
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SourceFingerprint | 100.00% | 2 / 2 | 100.00% | 2 / 2 | 2 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| matches | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Broker\Reload; | |
| 6 | ||
| 7 | final readonly class SourceFingerprint | |
| 8 | { | |
| 9 | public function __construct(public string $digest) {} | |
| 10 | ||
| 11 | public function matches(self $other): bool | |
| 12 | { | |
| 13 | return $this->digest === $other->digest; | |
| 14 | } | |
| 15 | } |