src/GameOfLife/Rules/CustomRule.php
/**
     * Parses a <stayAlive>/<birth> string and sets the birth and stay alive rules.
     *
     * @param String $_rulesString
     */
Parses a / string and sets the birth and stay alive rules.
@param String $_rulesString
Parses a / string and sets the birth and stay alive rules . @param String $_rulesString
private function parseStayAliveSlashBirthString(String $_rulesString)
    {
        $ruleParts = explode("/", $_rulesString);
        $this->rulesBirth = $this->getRulesFromNumericString($ruleParts[1]);
        $this->rulesStayAlive = $this->getRulesFromNumericString($ruleParts[0]);
    }
private function parseStayAliveSlashBirthString ( String $ _rulesString ) { $ ruleParts = explode ( " / " , $ _rulesString ) ; $ this -> rulesBirth = $ this -> getRulesFromNumericString ( $ ruleParts [ 1 ] ) ; $ this -> rulesStayAlive = $ this -> getRulesFromNumericString ( $ ruleParts [ 0 ] ) ; }
Parses a <stayAlive>/<birth> string and sets the birth and stay alive rules.
Parses a <stayAlive > / <birth > string and sets the birth and stay alive rules .