src/GameOfLife/Inputs/BoardEditor/Options/ClearBoardOption.php
/**
     * Clears the board.
     *
     * @return bool Indicates whether the board editing is finished
     */
Clears the board.
@return bool Indicates whether the board editing is finished
Clears the board . @return bool Indicates whether the board editing is finished
public function clearBoard(): bool
    {
        $selectionCoordinates = $this->parentBoardEditor->selectionCoordinates();
        if ($selectionCoordinates != array()) $this->clearSelection($selectionCoordinates);
        else $this->parentBoardEditor->board()->resetBoard();
        $this->parentBoardEditor->outputBoard();
        return false;
    }
public function clearBoard ( ) : bool { $ selectionCoordinates = $ this -> parentBoardEditor -> selectionCoordinates ( ) ; if ( $ selectionCoordinates != array ( ) ) $ this -> clearSelection ( $ selectionCoordinates ) ; else $ this -> parentBoardEditor -> board ( ) -> resetBoard ( ) ; $ this -> parentBoardEditor -> outputBoard ( ) ; return false ; }
Clears the board.
Clears the board .