| 1 | <?php |
||
| 15 | class MultistateTokenDefinition extends TokenDefinition |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $state; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $nextState; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * MultistateTokenDefinition constructor. |
||
| 29 | * @param string $name |
||
| 30 | * @param string $pcre |
||
| 31 | * @param bool $keep |
||
| 32 | * @param int $state |
||
| 33 | * @param int $nextState |
||
| 34 | */ |
||
| 35 | public function __construct(string $name, string $pcre, bool $keep = true, int $state = 0, int $nextState = 0) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getState(): int |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function getNextState(): int |
||
| 57 | } |
||
| 58 |