public function getOptional(/* ..., */$defaultValue) {
        $args = func_get_args();
        try {
            return call_user_func_array(array($this, "get"), array_slice($args, 0, -1));
        } catch (fphp\NotFoundSettingsException $e) {
            return $args[count($args) - 1];
        }
    }
public function getOptional(/* ..., */$defaultValue) {
        $args = func_get_args();
        try {
            return call_user_func_array(array($this, "get"), array_slice($args, 0, -1));
        } catch (fphp\NotFoundSettingsException $e) {
            return $args[count($args) - 1];
        }
    }
public function getOptional ( /* ..., */ $ defaultValue ) { $ args = func_get_args ( ) ; try { return call_user_func_array ( array ( $ this , "get" ) , array_slice ( $ args , 0 , - 1 ) ) ; } catch ( fphp \ NotFoundSettingsException $ e ) { return $ args [ count ( $ args ) - 1 ] ; } }
Returns an optional setting, defaulting to a value.
A setting path can be supplied variadically.
@param mixed $defaultValue
@return mixed
Returns an optional setting defaulting to a value . A setting path can be supplied variadically .