1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Tokenizer;
9:
10:
11: /**
12: * Simple token.
13: */
14: class Token
15: {
16: /** @var string */
17: public $value;
18:
19: /** @var int|string */
20: public $type;
21:
22: /** @var int */
23: public $offset;
24:
25:
26: public function __construct($value, $type, $offset)
27: {
28: $this->value = $value;
29: $this->type = $type;
30: $this->offset = $offset;
31: }
32: }
33: