Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Sts
/
RegionalEndpoints
/
File Content:
Configuration.php
<?php namespace PleskLetsEncrypt\Aws\Sts\RegionalEndpoints; class Configuration implements ConfigurationInterface { private $endpointsType; private $isFallback; public function __construct($endpointsType, $isFallback = \false) { $this->endpointsType = \strtolower($endpointsType); $this->isFallback = $isFallback; 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()]; } public function isFallback() { return $this->isFallback; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Exception
---
0755
Configuration.php
900 bytes
0644
ConfigurationInterface.php
441 bytes
0644
ConfigurationProvider.php
7284 bytes
0644
N4ST4R_ID | Naxtarrr