forked from netgen/query-translator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUser.php
38 lines (32 loc) · 732 Bytes
/
User.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
<?php
namespace QueryTranslator\Languages\Galach\Values\Token;
use QueryTranslator\Languages\Galach\Tokenizer;
use QueryTranslator\Values\Token;
/**
* User term token.
*
* @see \QueryTranslator\Languages\Galach\Tokenizer::TOKEN_TERM
*/
final class User extends Token
{
/**
* @var string
*/
public $marker;
/**
* @var string
*/
public $user;
/**
* @param string $lexeme
* @param int $position
* @param string $marker
* @param string $user
*/
public function __construct($lexeme, $position, $marker, $user)
{
$this->marker = $marker;
$this->user = $user;
parent::__construct(Tokenizer::TOKEN_TERM, $lexeme, $position);
}
}