protected function printTransitions(array $transitions)
    {
        end($transitions);

        $lastTransition = key($transitions);

        reset($transitions);

        $rows = [];

        foreach ($transitions as $name => $transition) {
            $rows[] = [$name, implode(PHP_EOL, $transition['from']), $transition['to']];

            if ($name !== $lastTransition) {
                $rows[] = new TableSeparator();
            }
        }

        $this->table(['Transition', 'From(s)', 'To'], $rows);
    }
protected function printTransitions(array $transitions)
    {
        end($transitions);

        $lastTransition = key($transitions);

        reset($transitions);

        $rows = [];

        foreach ($transitions as $name => $transition) {
            $rows[] = [$name, implode(PHP_EOL, $transition['from']), $transition['to']];

            if ($name !== $lastTransition) {
                $rows[] = new TableSeparator();
            }
        }

        $this->table(['Transition', 'From(s)', 'To'], $rows);
    }
protected function printTransitions ( array $ transitions ) { end ( $ transitions ) ; $ lastTransition = key ( $ transitions ) ; reset ( $ transitions ) ; $ rows = [ ] ; foreach ( $ transitions as $ name => $ transition ) { $ rows [ ] = [ $ name , implode ( PHP_EOL , $ transition [ 'from' ] ) , $ transition [ 'to' ] ] ; if ( $ name !== $ lastTransition ) { $ rows [ ] = new TableSeparator ( ) ; } } $ this -> table ( [ 'Transition' , 'From(s)' , 'To' ] , $ rows ) ; }
Display the graph transitions on a table.

@param array $transitions
Display the graph transitions on a table .