Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types = 1);
2
namespace TheSeer\Tokenizer;
3
 
4
class Token {
5
 
6
    /** @var int */
7
    private $line;
8
 
9
    /** @var string */
10
    private $name;
11
 
12
    /** @var string */
13
    private $value;
14
 
15
    /**
16
     * Token constructor.
17
     */
18
    public function __construct(int $line, string $name, string $value) {
19
        $this->line  = $line;
20
        $this->name  = $name;
21
        $this->value = $value;
22
    }
23
 
24
    public function getLine(): int {
25
        return $this->line;
26
    }
27
 
28
    public function getName(): string {
29
        return $this->name;
30
    }
31
 
32
    public function getValue(): string {
33
        return $this->value;
34
    }
35
}