src/GameOfLife/Inputs/BoardEditor/BoardEditor.php
/**
     * Restores the next board of the history.
     *
     * @throws \Exception
     */
Restores the next board of the history.
@throws \Exception
Restores the next board of the history . @throws \ Exception
public function restoreNextBoard()
    {
        if ($this->currentBoard == count($this->historyOfBoards) - 1)
        {
            throw new \Exception("There is no next board in the history.");
        }
        $this->currentBoard++;
        $this->board->copy($this->historyOfBoards[$this->currentBoard]);
    }
public function restoreNextBoard ( ) { if ( $ this -> currentBoard == count ( $ this -> historyOfBoards ) - 1 ) { throw new \ Exception ( " There is no next board in the history. " ) ; } $ this -> currentBoard ++ ; $ this -> board -> copy ( $ this -> historyOfBoards [ $ this -> currentBoard ] ) ; }
Restores the next board of the history.
Restores the next board of the history .