Seditio Source
Root |
./othercms/dle15_0/upload/engine/classes/composer/vendor/aws/aws-sdk-php/src/Sts/RegionalEndpoints/Configuration.php
<?php
namespace Aws\Sts\RegionalEndpoints;

class
Configuration implements ConfigurationInterface
{
    private
$endpointsType;

    public function
__construct($endpointsType)
    {
       
$this->endpointsType = strtolower($endpointsType);
        if (!
in_array($this->endpointsType, ['legacy', 'regional'])) {
            throw new \
InvalidArgumentException(
               
"Configuration parameter must either be 'legacy' or 'regional'."
           
);
        }
    }

   
/**
     * {@inheritdoc}
     */
   
public function getEndpointsType()
    {
        return
$this->endpointsType;
    }

   
/**
     * {@inheritdoc}
     */
   
public function toArray()
    {
        return [
           
'endpoints_type' => $this->getEndpointsType()
        ];
    }
}