packages/sql-parser/src/Table/ActionRows.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlParser\Table;
6
7/**
8 * The explicit actions of every state, one row per state.
9 *
10 * @visibility root
11 */
12interface ActionRows
13{
14 /**
15 * Answers the explicit actions of one state.
16 *
17 * @param int $state State number
18 *
19 * @return array<int, int> Action code by symbol number
20 */
21 public function row(int $state): array;
22
23 /**
24 * Answers how many states there are.
25 *
26 * @return int State count
27 */
28 public function count(): int;
29}
30