| 1 | <?php |
||
| 8 | trait S3ContextTrait |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $bucketName; |
||
| 12 | |||
| 13 | /** @var S3Client */ |
||
| 14 | private $s3Client; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return mixed[] |
||
| 18 | */ |
||
| 19 | abstract public function getAwsServiceConfig(); |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return S3Client |
||
| 23 | * @throws \InvalidArgumentException |
||
| 24 | */ |
||
| 25 | public function getS3Client() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Given /^a data store named "([^"]*)"$/ |
||
| 38 | * @param string $name |
||
| 39 | * @return string |
||
| 40 | * @throws \InvalidArgumentException |
||
| 41 | * @throws \Aws\S3\Exception\S3Exception |
||
| 42 | * @throws \Exception |
||
| 43 | */ |
||
| 44 | public function getS3BucketFixture($name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getBucketName() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return ClaimCheckFactory |
||
| 63 | */ |
||
| 64 | public function createClaimCheckFactory() |
||
| 68 | } |
||
| 69 |