PluginProbe
Media Cloud Sync / 1.1.1
Media Cloud Sync v1.1.1
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 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Endpoint / UseFipsEndpoint / Configuration.php

Configuration.php in Media Cloud Sync 1.1.1, at includes/sdk/s3/Aws/Endpoint/UseFipsEndpoint/Configuration.php

33 lines 890 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\Endpoint\UseFipsEndpoint;
4
5 use Dudlewebs\WPMCS\s3\Aws;
6 use Dudlewebs\WPMCS\s3\Aws\ClientResolver;
7 use Dudlewebs\WPMCS\s3\Aws\Endpoint\UseFipsEndpoint\Exception\ConfigurationException;
8 class Configuration implements ConfigurationInterface
9 {
10 private $useFipsEndpoint;
11 public function __construct($useFipsEndpoint)
12 {
13 $this->useFipsEndpoint = Aws\boolean_value($useFipsEndpoint);
14 if (\is_null($this->useFipsEndpoint)) {
15 throw new ConfigurationException("'use_fips_endpoint' config option" . " must be a boolean value.");
16 }
17 }
18 /**
19 * {@inheritdoc}
20 */
21 public function isUseFipsEndpoint()
22 {
23 return $this->useFipsEndpoint;
24 }
25 /**
26 * {@inheritdoc}
27 */
28 public function toArray()
29 {
30 return ['use_fips_endpoint' => $this->isUseFipsEndpoint()];
31 }
32 }
33