File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/RetryLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: Configuration.php <?php namespace Aws\Retry; use Aws\Retry\Exception\ConfigurationException; class Configuration implements ConfigurationInterface { private $mode; private $maxAttempts; private $validModes = [ 'legacy', 'standard', 'adaptive' ]; public function __construct($mode = 'legacy', $maxAttempts = 3) { $mode = strtolower($mode); if (!in_array($mode, $this->validModes)) { throw new ConfigurationException("'{$mode}' is not a valid mode." . " The mode has to be 'legacy', 'standard', or 'adaptive'."); } if (!is_numeric($maxAttempts) || intval($maxAttempts) != $maxAttempts || $maxAttempts < 1 ) { throw new ConfigurationException("The 'maxAttempts' parameter has" . " to be an integer >= 1."); } $this->mode = $mode; $this->maxAttempts = intval($maxAttempts); } /** * {@inheritdoc} */ public function getMode() { return $this->mode; } /** * {@inheritdoc} */ public function getMaxAttempts() { return $this->maxAttempts; } /** * {@inheritdoc} */ public function toArray() { return [ 'mode' => $this->getMode(), 'max_attempts' => $this->getMaxAttempts(), ]; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirConfiguration.phpFile1.36 KB Rename | Delete | EditConfigurationInterface.phpFile587.00 B Rename | Delete | EditConfigurationProvider.phpFile7.75 KB Rename | Delete | EditExceptionDirectory Rename | DeleteQuotaManager.phpFile2.51 KB Rename | Delete | EditRateLimiter.phpFile5.02 KB Rename | Delete | EditRetryHelperTrait.phpFile1.52 KB Rename | Delete | Edit