| 1 | <?php |
||
| 6 | final class Partial |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var int |
||
| 10 | */ |
||
| 11 | private $firstByte; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $lastByte; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param int $firstByte |
||
| 20 | * @param int $lastByte |
||
| 21 | */ |
||
| 22 | 9 | public function __construct(int $firstByte, int $lastByte) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 6 | public function __toString(): string |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $partial |
||
| 47 | * @return Partial |
||
| 48 | */ |
||
| 49 | 4 | public static function fromString(string $partial): self |
|
| 59 | } |
||
| 60 |