| Total Complexity | 5 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | final class ShortString implements Value | ||
| 12 | { | ||
| 13 | private $value; | ||
| 14 | private $original; | ||
| 15 | |||
| 16 | 97 | public function __construct(Str $string) | |
| 19 | 97 | } | |
| 20 | |||
| 21 | 68 | public static function of(Str $string): self | |
| 22 |     { | ||
| 23 | 68 |         UnsignedOctet::of(new Integer($string->toEncoding('ASCII')->length())); | |
| 24 | |||
| 25 | 67 | return new self($string); | |
| 26 | } | ||
| 27 | |||
| 28 | 69 | public static function fromStream(Readable $stream): Value | |
| 33 | } | ||
| 34 | |||
| 35 | 72 | public function original(): Str | |
| 36 |     { | ||
| 37 | 72 | return $this->original; | |
| 38 | } | ||
| 39 | |||
| 40 | 96 | public function __toString(): string | |
| 45 | } | ||
| 46 | } | ||
| 47 |