-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathPhrase.php
47 lines (40 loc) · 931 Bytes
/
Phrase.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace QueryTranslator\Languages\Galach\Values\Token;
use QueryTranslator\Languages\Galach\Tokenizer;
use QueryTranslator\Values\Token;
/**
* Phrase term token.
*
* @see \QueryTranslator\Languages\Galach\Tokenizer::TOKEN_TERM
*/
final class Phrase extends Token
{
/**
* Holds domain identifier or null if not set.
*
* @var null|string
*/
public $domain;
/**
* @var string
*/
public $quote;
/**
* @var string
*/
public $phrase;
/**
* @param string $lexeme
* @param int $position
* @param string $domain
* @param string $quote
* @param string $phrase
*/
public function __construct($lexeme, $position, $domain, $quote, $phrase)
{
$this->domain = $domain;
$this->quote = $quote;
$this->phrase = $phrase;
parent::__construct(Tokenizer::TOKEN_TERM, $lexeme, $position);
}
}