Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | final class UnsignedLongLongInteger implements Value |
||
16 | { |
||
17 | private static $definitionSet; |
||
18 | |||
19 | private $value; |
||
20 | private $original; |
||
21 | |||
22 | 45 | public function __construct(Integer $value) |
|
23 | { |
||
24 | 45 | $this->original = $value; |
|
25 | 45 | } |
|
26 | |||
27 | 28 | public static function fromStream(Readable $stream): Value |
|
28 | { |
||
29 | 28 | [, $value] = unpack('J', (string) $stream->read(8)); |
|
30 | |||
31 | 28 | return new self(new Integer($value)); |
|
32 | } |
||
33 | |||
34 | 34 | public function original(): Integer |
|
35 | { |
||
36 | 34 | return $this->original; |
|
37 | } |
||
38 | |||
39 | 44 | public function __toString(): string |
|
42 | } |
||
43 | |||
44 | 1 | public static function definitionSet(): Set |
|
45 | { |
||
52 |