-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathWord.php
More file actions
40 lines (34 loc) · 767 Bytes
/
Word.php
File metadata and controls
40 lines (34 loc) · 767 Bytes
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
<?php
namespace QueryTranslator\Languages\Galach\Values\Token;
use QueryTranslator\Languages\Galach\Tokenizer;
use QueryTranslator\Values\Token;
/**
* Word term token.
*
* @see \QueryTranslator\Languages\Galach\Tokenizer::TOKEN_TERM
*/
final class Word extends Token
{
/**
* Holds domain string.
*
* @var string
*/
public $domain;
/**
* @var string
*/
public $word;
/**
* @param string $lexeme
* @param int $position
* @param string $domain
* @param string $word
*/
public function __construct($lexeme, $position, $domain, $word)
{
$this->domain = $domain;
$this->word = $word;
parent::__construct(Tokenizer::TOKEN_TERM, $lexeme, $position);
}
}