/home/tuzdhajd/tuzdayscloset.com/wp-content/plugins/brizy/vendor/phplrt/grammar/src/Terminal.php
<?php

/**
 * This file is part of phplrt package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Phplrt\Grammar;

use Phplrt\Contracts\Grammar\TerminalInterface;

/**
 * Class Terminal
 */
abstract class Terminal extends Rule implements TerminalInterface
{
    /**
     * @var bool
     */
    protected $keep = true;

    /**
     * Terminal constructor.
     *
     * @param bool $keep
     */
    public function __construct(bool $keep)
    {
        $this->keep = $keep;
    }

    /**
     * @return bool
     */
    public function isKeep(): bool
    {
        return $this->keep;
    }
}