src/AzureAdapter.php
protected function getOptionsFromConfig(Config $config)
    {
        $options = new CreateBlobOptions();

        foreach (static::$metaOptions as $option) {
            if ( ! $config->has($option)) {
                continue;
            }

            call_user_func([$options, "set$option"], $config->get($option));
        }

        if ($mimetype = $config->get('mimetype')) {
            $options->setContentType($mimetype);
        }

        return $options;
    }
protected function getOptionsFromConfig(Config $config)
    {
        $options = new CreateBlobOptions();

        foreach (static::$metaOptions as $option) {
            if ( ! $config->has($option)) {
                continue;
            }

            call_user_func([$options, "set$option"], $config->get($option));
        }

        if ($mimetype = $config->get('mimetype')) {
            $options->setContentType($mimetype);
        }

        return $options;
    }
protected function getOptionsFromConfig ( Config $ config ) { $ options = new CreateBlobOptions ( ) ; foreach ( static :: $ metaOptions as $ option ) { if ( ! $ config -> has ( $ option ) ) { continue ; } call_user_func ( [ $ options , "set$option" ] , $ config -> get ( $ option ) ) ; } if ( $ mimetype = $ config -> get ( 'mimetype' ) ) { $ options -> setContentType ( $ mimetype ) ; } return $ options ; }
Retrieve options from a Config instance.

@param Config $config

@return CreateBlobOptions
Retrieve options from a Config instance .