src/GameOfLife/Inputs/UserInput.php
/**
     * Launches a new board editor session.
     *
     * @param Board $_board The board that will be filled
     * @param Getopt $_options The option list
     *
     * @throws \Exception The exceptions of the TemplateInput and the board editor launch method
     */
Launches a new board editor session.
@param Board $_board The board that will be filled
@param Getopt $_options The option list

@throws \Exception The exceptions of the TemplateInput and the board editor launch method
Launches a new board editor session . @param Board $_board The board that will be filled @param Getopt $_options The option list @throws \ Exception The exceptions of the TemplateInput and the board editor launch method
public function fillBoard(Board $_board, Getopt $_options)
    {
        if ($_options->getOption("edit") !== null)
        {
            $templateInput = new TemplateInput($this->templatesBaseDirectory);
            $templateInput->fillBoard($_board, $_options);
        }
        $this->boardEditor->setBoard($_board);
        $this->boardEditor->launch();
    }
public function fillBoard ( Board $ _board , Getopt $ _options ) { if ( $ _options -> getOption ( " edit " ) !== null ) { $ templateInput = new TemplateInput ( $ this -> templatesBaseDirectory ) ; $ templateInput -> fillBoard ( $ _board , $ _options ) ; } $ this -> boardEditor -> setBoard ( $ _board ) ; $ this -> boardEditor -> launch ( ) ; }
Launches a new board editor session.
Launches a new board editor session .