blob: ffcbe40099fbe972ac150e984d1f7d166f546cbc (
plain)
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
|
<?php declare(strict_types = 1);
namespace TheSeer\Tokenizer;
class Token {
/** @var int */
private $line;
/** @var string */
private $name;
/** @var string */
private $value;
/**
* Token constructor.
*/
public function __construct(int $line, string $name, string $value) {
$this->line = $line;
$this->name = $name;
$this->value = $value;
}
public function getLine(): int {
return $this->line;
}
public function getName(): string {
return $this->name;
}
public function getValue(): string {
return $this->value;
}
}
|