Debian Codegraph @

vendor/wikimedia/css-sanitizer/src/Parser/Tokenizer.php

raw
1 <?php
2 /**
3 * @file
4 * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
5 */
6
7 namespace Wikimedia\CSS\Parser;
8
9 use Wikimedia\CSS\Objects\Token;
10
11 /**
12 * Tokenizer interface
13 */
14 interface Tokenizer {
15
16 /**
17 * Return all parse errors seen so far
18 * @return array Array of [ string $tag, int $line, int $pos, ... ]
19 */
20 public function getParseErrors();
21
22 /**
23 * Clear parse errors
24 */
25 public function clearParseErrors();
26
27 /**
28 * Read a token from the data source
29 * @return Token
30 */
31 public function consumeToken();
32
33 }