1 | <?php |
||
5 | class Token |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $type; |
||
11 | |||
12 | /** |
||
13 | * @var mixed |
||
14 | */ |
||
15 | private $value; |
||
16 | |||
17 | /** |
||
18 | * @param string $type |
||
19 | * @param mixed $value |
||
20 | */ |
||
21 | public function __construct(string $type, $value) |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getType(): string |
||
34 | |||
35 | /** |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function getValue() |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function __toString() |
||
50 | } |
||
51 |