src/GameOfLife/OptionHandler/OptionParser.php
/**
     * Parses the rule options and returns the Rule object.
     *
     * @param Getopt $_options The option list
     *
     * @return BaseRule The rule object
     *
     * @throws \Exception The exceptions of the Rule constructors
     */
Parses the rule options and returns the Rule object.
@param Getopt $_options The option list

@return BaseRule The rule object

@throws \Exception The exceptions of the Rule constructors
Parses the rule options and returns the Rule object . @param Getopt $_options The option list @return BaseRule The rule object @throws \ Exception The exceptions of the Rule constructors
public function parseRuleOptions(Getopt $_options): BaseRule
    {
        $rule = $this->parseClassOptions($_options, "rules", "Rule", "Rule");
        if ($rule) return $rule;
        else return new ConwayRule();
    }
public function parseRuleOptions ( Getopt $ _options ) : BaseRule { $ rule = $ this -> parseClassOptions ( $ _options , " rules " , " Rule " , " Rule " ) ; if ( $ rule ) return $ rule ; else return new ConwayRule ( ) ; }
Parses the rule options and returns the Rule object.
Parses the rule options and returns the Rule object .