| 1 | <?php |
||
| 6 | final class Partial |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var int |
||
| 10 | */ |
||
| 11 | private $firstByte; |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $lastByte; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $firstByte |
||
| 19 | * @param int $lastByte |
||
| 20 | */ |
||
| 21 | public function __construct(int $firstByte, int $lastByte) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function __toString(): string |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return Partial |
||
| 44 | */ |
||
| 45 | public static function full(): self |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $partial |
||
| 52 | * @return Partial |
||
| 53 | */ |
||
| 54 | public static function fromString(string $partial): self |
||
| 64 | } |