30 lines
617 B
PHP
30 lines
617 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace DeliciousBrains\WP_Offload_Media\Aws3\Aws\EndpointDiscovery;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Provides access to endpoint discovery configuration options:
|
||
|
|
* 'enabled', 'cache_limit'
|
||
|
|
*/
|
||
|
|
interface ConfigurationInterface
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Checks whether or not endpoint discovery is enabled.
|
||
|
|
*
|
||
|
|
* @return bool
|
||
|
|
*/
|
||
|
|
public function isEnabled();
|
||
|
|
/**
|
||
|
|
* Returns the cache limit, if available.
|
||
|
|
*
|
||
|
|
* @return string|null
|
||
|
|
*/
|
||
|
|
public function getCacheLimit();
|
||
|
|
/**
|
||
|
|
* Returns the configuration as an associative array
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
public function toArray();
|
||
|
|
}
|