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 |
||
37 | |||
38 | /** |
||
39 | * @param string $partial |
||
40 | * @return Partial |
||
41 | */ |
||
42 | public static function fromString(string $partial): self |
||
52 | } |