Files
firefly-iii/app/Support/Search/QueryParser/StringNode.php

25 lines
507 B
PHP
Raw Normal View History

2025-01-02 22:17:56 +01:00
<?php
declare(strict_types=1);
namespace FireflyIII\Support\Search\QueryParser;
/**
* Represents a string in the search query, meaning either a single-word without spaces or a quote-delimited string
2025-01-02 22:17:56 +01:00
*/
class StringNode extends Node
2025-01-02 22:17:56 +01:00
{
private string $value;
public function __construct(string $value, bool $prohibited = false)
{
$this->value = $value;
$this->prohibited = $prohibited;
}
public function getValue(): string
{
return $this->value;
}
}