Behat\Gherkin\Parser::parseTableRows PHP Method

parseTableRows() private method

Parses the rows of a table
private parseTableRows ( ) : string[][]
return string[][]
    private function parseTableRows()
    {
        $table = array();
        while (in_array($predicted = $this->predictTokenType(), array('TableRow', 'Newline', 'Comment'))) {
            if ('Comment' === $predicted || 'Newline' === $predicted) {
                $this->acceptTokenType($predicted);
                continue;
            }
            $token = $this->expectTokenType('TableRow');
            $table[$token['line']] = $token['columns'];
        }
        return $table;
    }