PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / s3 / Aws / Arn / S3 / AccessPointArn.php

AccessPointArn.php in Media Cloud Sync 1.4.2, at includes/sdk/s3/Aws/Arn/S3/AccessPointArn.php

27 lines 763 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Arn\S3;
4
5 use Dudlewebs\WPMCS\s3\Aws\Arn\AccessPointArn as BaseAccessPointArn;
6 use Dudlewebs\WPMCS\s3\Aws\Arn\AccessPointArnInterface;
7 use Dudlewebs\WPMCS\s3\Aws\Arn\ArnInterface;
8 use Dudlewebs\WPMCS\s3\Aws\Arn\Exception\InvalidArnException;
9 /**
10 * @internal
11 */
12 class AccessPointArn extends BaseAccessPointArn implements AccessPointArnInterface
13 {
14 /**
15 * Validation specific to AccessPointArn
16 *
17 * @param array $data
18 */
19 public static function validate(array $data)
20 {
21 parent::validate($data);
22 if ($data['service'] !== 's3') {
23 throw new InvalidArnException("The 3rd component of an S3 access" . " point ARN represents the region and must be 's3'.");
24 }
25 }
26 }
27