src/GameOfLife/Inputs/BoardEditor/OptionHandler/BoardEditorOptionParser.php
/**
     * Checks whether an argument is valid.
     *
     * @param String $_argument The argument
     * @param String $_argumentType The argument type
     *
     * @throws \Exception The exception when the argument is not valid
     */
Checks whether an argument is valid.
@param String $_argument The argument
@param String $_argumentType The argument type

@throws \Exception The exception when the argument is not valid
Checks whether an argument is valid . @param String $_argument The argument @param String $_argumentType The argument type @throws \ Exception The exception when the argument is not valid
public function checkArgument(String $_argument, String $_argumentType)
    {
        if ($_argument === "") throw new \Exception("Arguments may not be empty.");
        elseif ($_argumentType == "int" && ! is_numeric($_argument))
        {
            throw new \Exception("The argument must be a number.");
        }
    }
public function checkArgument ( String $ _argument , String $ _argumentType ) { if ( $ _argument === " " ) throw new \ Exception ( " Arguments may not be empty. " ) ; elseif ( $ _argumentType == " int " && ! is_numeric ( $ _argument ) ) { throw new \ Exception ( " The argument must be a number. " ) ; } }
Checks whether an argument is valid.
Checks whether an argument is valid .