| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Text implements Value |
||
| 11 | { |
||
| 12 | private $value; |
||
| 13 | private $original; |
||
| 14 | |||
| 15 | 33 | public function __construct(Str $string) |
|
| 19 | 33 | } |
|
| 20 | |||
| 21 | 2 | public static function fromStream(Readable $stream): Value |
|
| 22 | { |
||
| 23 | 2 | return new self($stream->read()); |
|
| 24 | } |
||
| 25 | |||
| 26 | 21 | public function original(): Str |
|
| 27 | { |
||
| 28 | 21 | return $this->original; |
|
| 29 | } |
||
| 30 | |||
| 31 | 30 | public function __toString(): string |
|
| 34 | } |
||
| 35 | } |
||
| 36 |