| 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 | 8 | public function __construct(int $firstByte, int $lastByte) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 5 | public function __toString(): string |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $partial |
||
| 46 | * @return Partial |
||
| 47 | */ |
||
| 48 | 3 | public static function fromString(string $partial): self |
|
| 58 | } |