| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 112 | public static function fromStream(Readable $stream): Value |
|
| 29 | { |
||
| 30 | 112 | $length = UnsignedLongInteger::fromStream($stream)->original(); |
|
| 31 | |||
| 32 | 112 | return new self($stream->read($length->value())); |
|
| 33 | } |
||
| 34 | |||
| 35 | 16 | public function original(): Str |
|
| 36 | { |
||
| 37 | 16 | return $this->original; |
|
| 38 | } |
||
| 39 | |||
| 47 |