phplrt/phplrt

View on GitHub
libs/compiler/src/Node/Definition/TokenDefinitionNode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Phplrt\Compiler\Node\Definition;

/**
 * @internal This is an internal class, please do not use it in your application code.
 * @psalm-internal Phplrt\Compiler
 * @psalm-suppress PropertyNotSetInConstructor
 */
class TokenDefinitionNode extends Definition
{
    public ?string $state = null;

    public ?string $next = null;

    public function __construct(
        public string $name,
        public string $value,
        public bool $keep = true,
    ) {}
}