src/GameOfLife/Inputs/BoardEditor/Options/InvertBoardOption.php
/**
     * Inverts the current selection or the whole board.
     *
     * @return bool Indicates whether the board editing is finished
     */
Inverts the current selection or the whole board.
@return bool Indicates whether the board editing is finished
Inverts the current selection or the whole board . @return bool Indicates whether the board editing is finished
public function invert()
    {
        $selectionCoordinates = $this->parentBoardEditor->selectionCoordinates();
        if ($selectionCoordinates != array()) $this->invertSelection($selectionCoordinates);
        else $this->parentBoardEditor->board()->invertBoard();
        $this->parentBoardEditor->outputBoard();
        return false;
    }
public function invert ( ) { $ selectionCoordinates = $ this -> parentBoardEditor -> selectionCoordinates ( ) ; if ( $ selectionCoordinates != array ( ) ) $ this -> invertSelection ( $ selectionCoordinates ) ; else $ this -> parentBoardEditor -> board ( ) -> invertBoard ( ) ; $ this -> parentBoardEditor -> outputBoard ( ) ; return false ; }
Inverts the current selection or the whole board.
Inverts the current selection or the whole board .