xref: /PHP-8.0/ext/tokenizer/tokenizer.stub.php (revision b1019f46)
1<?php
2
3/** @generate-function-entries */
4
5function token_get_all(string $code, int $flags = 0): array {}
6
7function token_name(int $id): string {}
8
9class PhpToken implements Stringable
10{
11    /** @return static[] */
12    public static function tokenize(string $code, int $flags = 0): array {}
13
14    final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
15
16    /** @param int|string|array $kind */
17    public function is($kind): bool {}
18
19    public function isIgnorable(): bool {}
20
21    public function getTokenName(): ?string {}
22
23    public function __toString(): string {}
24}
25