src/GameOfLife/Rules/CustomRule.php
/**
     * Adds the rule options to a Getopt object.
     *
     * @param Getopt $_options The option list
     */
Adds the rule options to a Getopt object.
@param Getopt $_options The option list
Adds the rule options to a Getopt object . @param Getopt $_options The option list
public function addOptions(Getopt $_options)
    {
        $_options->addOptions(
            array
            (
                array(null, "rulesString", Getopt::REQUIRED_ARGUMENT, "CustomRule - Rule string in the format <stayAlive>/<birth> or <stayAlive>G<stayAlive/birth>"),
                array(null, "rulesBirth", Getopt::REQUIRED_ARGUMENT, "CustomRule - The amounts of cells which will rebirth a dead cell as a single string"),
                array(null, "rulesStayAlive", Getopt::REQUIRED_ARGUMENT, "CustomRule - The amounts of cells which will keep a living cell alive")
            )
        );
    }
public function addOptions ( Getopt $ _options ) { $ _options -> addOptions ( array ( array ( null , " rulesString " , Getopt :: REQUIRED_ARGUMENT , " CustomRule - Rule string in the format <stayAlive>/<birth> or <stayAlive>G<stayAlive/birth> " ) , array ( null , " rulesBirth " , Getopt :: REQUIRED_ARGUMENT , " CustomRule - The amounts of cells which will rebirth a dead cell as a single string " ) , array ( null , " rulesStayAlive " , Getopt :: REQUIRED_ARGUMENT , " CustomRule - The amounts of cells which will keep a living cell alive " ) ) ) ; }
Adds the rule options to a Getopt object.
Adds the rule options to a Getopt object .