src/GameOfLife/Inputs/BoardEditor/OptionHandler/BoardEditorOptionParser.php
/**
     * Changes the type of an argument to $_argumentType.
     *
     * @param String $_argument The argument
     * @param String $_argumentType The desired argument type
     *
     * @return mixed The converted argument
     */
Changes the type of an argument to $_argumentType.
@param String $_argument The argument
@param String $_argumentType The desired argument type

@return mixed The converted argument
Changes the type of an argument to $_argumentType . @param String $_argument The argument @param String $_argumentType The desired argument type @return mixed The converted argument
public function changeArgumentType(String $_argument, String $_argumentType)
    {
        $argument = $_argument;
        if ($_argumentType == "Bool")
        {
            if (stristr($_argument, "yes") || stristr($_argument, "y"))
            {
                $argument = true;
            }
            else $argument = false;
        }
        settype($argument, $_argumentType);
        return $argument;
    }
public function changeArgumentType ( String $ _argument , String $ _argumentType ) { $ argument = $ _argument ; if ( $ _argumentType == " Bool " ) { if ( stristr ( $ _argument , " yes " ) || stristr ( $ _argument , " y " ) ) { $ argument = true ; } else $ argument = false ; } settype ( $ argument , $ _argumentType ) ; return $ argument ; }
Changes the type of an argument to $_argumentType.
Changes the type of an argument to $_argumentType .