| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Crypto; |
| 4 |
|
| 5 |
interface MetadataStrategyInterface |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Places the information in the MetadataEnvelope to the strategy specific |
| 9 |
* location. Populates the PutObject arguments with any information |
| 10 |
* necessary for loading. |
| 11 |
* |
| 12 |
* @param MetadataEnvelope $envelope Encryption data to save according to |
| 13 |
* the strategy. |
| 14 |
* @param array $args Starting arguments for PutObject. |
| 15 |
* |
| 16 |
* @return array Updated arguments for PutObject. |
| 17 |
*/ |
| 18 |
public function save(MetadataEnvelope $envelope, array $args); |
| 19 |
/** |
| 20 |
* Generates a MetadataEnvelope according to the specific strategy using the |
| 21 |
* passed arguments. |
| 22 |
* |
| 23 |
* @param array $args Arguments from Command and Result that contains |
| 24 |
* S3 Object information, relevant headers, and command |
| 25 |
* configuration. |
| 26 |
* |
| 27 |
* @return MetadataEnvelope |
| 28 |
*/ |
| 29 |
public function load(array $args); |
| 30 |
} |
| 31 |
|