2025-01-02 22:17:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace FireflyIII\Support\Search\QueryParser;
|
|
|
|
|
|
|
|
/**
|
2025-01-02 23:19:21 +01:00
|
|
|
* 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
|
|
|
*/
|
2025-01-02 23:19:21 +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;
|
|
|
|
}
|
|
|
|
}
|