Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Endpoint
/
UseFipsEndpoint
:
Configuration.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Aws\Endpoint\UseFipsEndpoint; use Aws; use Aws\Endpoint\UseFipsEndpoint\Exception\ConfigurationException; class Configuration implements ConfigurationInterface { private $useFipsEndpoint; public function __construct($useFipsEndpoint) { $this->useFipsEndpoint = Aws\boolean_value($useFipsEndpoint); if (is_null($this->useFipsEndpoint)) { throw new ConfigurationException("'use_fips_endpoint' config option" . " must be a boolean value."); } } /** * {@inheritdoc} */ public function isUseFipsEndpoint() { return $this->useFipsEndpoint; } /** * {@inheritdoc} */ public function toArray() { return [ 'use_fips_endpoint' => $this->isUseFipsEndpoint(), ]; } }