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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| BoundSocketFile | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 12 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| isSameFileAs | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 6 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Control\Server; | |
| 6 | ||
| 7 | final readonly class BoundSocketFile | |
| 8 | { | |
| 9 | public function __construct( | |
| 10 | public string $path, | |
| 11 | public int $device, | |
| 12 | public int $inode, | |
| 13 | ) {} | |
| 14 | ||
| 15 | public function isSameFileAs(self $other): bool | |
| 16 | { | |
| 17 | return $this->device === $other->device && $this->inode === $other->inode; | |
| 18 | } | |
| 19 | } |