src/Ast/StringNode.php
<?php
namespace Krixon\Rules\Ast;
/**
* @method string value()
*/
final class StringNode implements LiteralNode
{
use ExposesValue;
public function __construct(string $value)
{
$this->value = $value;
}
public static function type(): string
{
return 'string';
}
public function accept(Visitor $visitor) : void
{
$visitor->visitString($this);
}
}