An exception will be thrown if this option isn't a boolean, or if this option isn't found, and no default value
is given.
public getBoolean ( string $name, mixed $default = self::REQUIRED_OPTION ) : boolean | mixed | ||
$name | string | The name of the option. |
$default | mixed | A default value which will be returned if the option isn't found. The option will be required if this parameter isn't given. The default value can be any value, including null. |
return | boolean | mixed | The option with the given name, or $default if the option isn't found and $default is specified. |