src/S3/Crypto/HeadersMetadataStrategy.php
public function load(array $args)
    {
        $envelope = new MetadataEnvelope();
        $constantValues = MetadataEnvelope::getConstantValues();

        foreach ($constantValues as $constant) {
            if (!empty($args['Metadata'][$constant])) {
                $envelope[$constant] = $args['Metadata'][$constant];
            }
        }

        return $envelope;
    }
public function load(array $args)
    {
        $envelope = new MetadataEnvelope();
        $constantValues = MetadataEnvelope::getConstantValues();

        foreach ($constantValues as $constant) {
            if (!empty($args['Metadata'][$constant])) {
                $envelope[$constant] = $args['Metadata'][$constant];
            }
        }

        return $envelope;
    }
public function load ( array $ args ) { $ envelope = new MetadataEnvelope ( ) ; $ constantValues = MetadataEnvelope :: getConstantValues ( ) ; foreach ( $ constantValues as $ constant ) { if ( ! empty ( $ args [ 'Metadata' ] [ $ constant ] ) ) { $ envelope [ $ constant ] = $ args [ 'Metadata' ] [ $ constant ] ; } } return $ envelope ; }
Generates a MetadataEnvelope according to the Metadata headers from the
GetObject result.

@param array $args Arguments from Command and Result that contains
S3 Object information, relevant headers, and command
configuration.

@return MetadataEnvelope
Generates a MetadataEnvelope according to the Metadata headers from the GetObject result .