1 | <?php |
||
19 | class Parser |
||
20 | { |
||
21 | private const STATE_CONFIGURE = 0x00; |
||
22 | private const STATE_TOKEN = 0x01; |
||
23 | private const STATE_PRODUCTIONS = 0x02; |
||
24 | |||
25 | /** |
||
26 | * @var array|ResolverInterface[] |
||
27 | */ |
||
28 | private $resolvers; |
||
29 | |||
30 | /** |
||
31 | * Parser constructor. |
||
32 | */ |
||
33 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * @param Readable $file |
||
48 | * @param TokenInterface $token |
||
49 | */ |
||
50 | public function process(Readable $file, TokenInterface $token): void |
||
54 | |||
55 | /** |
||
56 | * @param TokenInterface $token |
||
57 | * @return int |
||
58 | */ |
||
59 | private function getState(TokenInterface $token): int |
||
71 | |||
72 | /** |
||
73 | * @return Result |
||
74 | */ |
||
75 | public function getResult(): Result |
||
83 | } |
||
84 |