classArrayRows
final class ArrayRows
implements ActionRows
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Action rows held in memory as they were built.
Methods§
public function __construct(private list<array<int, int>> $rows)Parameters
$rows | list<array<int, int>> | Action code by symbol, per state |
public function row(int $state): array<int, int>Answers the explicit actions of one state.
Parameters
$state | int | State number |
Returns
array<int, int> Action code by symbol numberTest cases 2
ActionRowsTest::testRowcallsArrayRowsTest::testRowcalls
public function count(): intAnswers how many states there are.
Returns
int State countTest cases 2
Calls 1
- function-call
countline 40
Private surface 1§
Implementation details, listed for orientation only.
private list<array<int, int>> $rowsTest cases 16§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
ArrayRowsTest::testCountcallsArrayRowsTest::testRowcalls
Other tests reaching this symbol 14
BuildResultTest::testPropertiesAreKeptcallsParseTableBuilderTestcallsLrParserTestcallsResourceWriterTest::testWriteTablecallsActionRowsTest::testCountcallsActionRowsTest::testRowcallsParseTableTest::testActionFallsBackThenUsesTheWildcardThenTheDefaultcallsParseTableTest::testActionPrefersTheExplicitEntrycallsParseTableTest::testExpectedTerminalscallsParseTableTest::testStateCountcallsTableCodecTest::testDecodeKeepsAMissingWildcardcallsTableCodecTest::testEncodeAndDecodeRoundTripcallsTableFileTest::testForgetcallsTableFileTest::testSaveAndLoadRoundTripcalls