| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class Text |
||
| 19 | { |
||
| 20 | /** @var string */ |
||
| 21 | private $value = ''; |
||
| 22 | |||
| 23 | private function __construct(string $value) |
||
| 24 | { |
||
| 25 | Assertion::nullOrNotEmpty($value, 'Value is not specified'); |
||
| 26 | $this->value = $value; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function __toString(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromString(string $value): self |
||
| 37 | } |
||
| 38 | } |
||
| 39 |