krixon/rules

View on GitHub
src/Ast/StringNode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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);
    }
}