| 1 | <?php |
||
| 21 | class StringLiteral extends NativeValueObject |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $value; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $value |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | public static function fromNative($value) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $value |
||
| 40 | * |
||
| 41 | * @throws \InvalidArgumentException |
||
| 42 | */ |
||
| 43 | public function __construct($value) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function toNative() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function isEmpty() |
||
| 70 | } |
||
| 71 |