src/GameOfLife/Board.php
/**
     * Returns an empty board.
     *
     * Uses the height attribute of this board to determine the amount of nested arrays
     *
     * @return Field[][] Empty board
     */
Returns an empty board.
Uses the height attribute of this board to determine the amount of nested arrays

@return Field[][] Empty board
Returns an empty board . Uses the height attribute of this board to determine the amount of nested arrays @return Field [] [] Empty board
public function initializeEmptyBoard(): array
    {
        $board = array();
        for ($y = 0; $y < $this->height; $y++)
        {
            $board[$y] = array();
            for ($x = 0; $x < $this->width; $x++)
            {
                $board[$y][] = new Field($x, $y, false, $this);
            }
        }
        return $board;
    }
public function initializeEmptyBoard ( ) : array { $ board = array ( ) ; for ( $ y = 0 ; $ y < $ this -> height ; $ y ++ ) { $ board [ $ y ] = array ( ) ; for ( $ x = 0 ; $ x < $ this -> width ; $ x ++ ) { $ board [ $ y ] [ ] = new Field ( $ x , $ y , false , $ this ) ; } } return $ board ; }
Returns an empty board.
Returns an empty board .