src/S3/Crypto/HeadersMetadataStrategy.php
public function save(MetadataEnvelope $envelope, array $args)
    {
        foreach ($envelope as $header=>$value) {
            $args['Metadata'][$header] = $value;
        }

        return $args;
    }
public function save(MetadataEnvelope $envelope, array $args)
    {
        foreach ($envelope as $header=>$value) {
            $args['Metadata'][$header] = $value;
        }

        return $args;
    }
public function save ( MetadataEnvelope $ envelope , array $ args ) { foreach ( $ envelope as $ header => $ value ) { $ args [ 'Metadata' ] [ $ header ] = $ value ; } return $ args ; }
Places the information in the MetadataEnvelope in to the Meatadata for
the PutObject request of the encrypted object.

@param MetadataEnvelope $envelope Encryption data to save according to
the strategy.
@param array $args Arguments for PutObject that can be manipulated to
store strategy related information.

@return array Updated arguments for PutObject.
Places the information in the MetadataEnvelope in to the Meatadata for the PutObject request of the encrypted object .