Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/AWS/Aws/Sts/RegionalEndpoints/Configuration.php
Строк: 49
<?php
namespace AwsStsRegionalEndpoints;

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()
        ];
    }
}
Онлайн: 0
Реклама