tokenizer.stub.php 692 B

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