SDK for PHP 3.x

MetadataStrategyInterface
in

Table of Contents

Methods

load()  : MetadataEnvelope
Generates a MetadataEnvelope according to the specific strategy using the passed arguments.
save()  : array<string|int, mixed>
Places the information in the MetadataEnvelope to the strategy specific location. Populates the PutObject arguments with any information necessary for loading.

Methods

load()

Generates a MetadataEnvelope according to the specific strategy using the passed arguments.

public load(array<string|int, mixed> $args) : MetadataEnvelope
Parameters
$args : array<string|int, mixed>

Arguments from Command and Result that contains S3 Object information, relevant headers, and command configuration.

Return values
MetadataEnvelope

save()

Places the information in the MetadataEnvelope to the strategy specific location. Populates the PutObject arguments with any information necessary for loading.

public save(MetadataEnvelope $envelope, array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
$envelope : MetadataEnvelope

Encryption data to save according to the strategy.

$args : array<string|int, mixed>

Starting arguments for PutObject.

Return values
array<string|int, mixed>

Updated arguments for PutObject.

On this page