mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 06:56:53 +00:00
[BridgeAbstract] Change scope of 'getCacheTimeout' to public
This commit is contained in:
parent
877b123838
commit
e09fb44b55
@ -270,12 +270,6 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cache timeout to the provided timeout value. The specified
|
||||
* timeout must be between 1..86400, otherwise the default timeout is used.
|
||||
*
|
||||
* @param int $timeout The timeout in seconds
|
||||
*/
|
||||
public function setCacheTimeout($timeout){
|
||||
if(is_numeric($timeout) && ($timeout < 1 || $timeout > 86400)) {
|
||||
$this->cacheTimeout = static::CACHE_TIMEOUT;
|
||||
@ -285,12 +279,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
$this->cacheTimeout = $timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the cache timeout
|
||||
*
|
||||
* @return int Returns the cache timeout
|
||||
*/
|
||||
protected function getCacheTimeout(){
|
||||
public function getCacheTimeout(){
|
||||
return isset($this->cacheTimeout) ? $this->cacheTimeout : static::CACHE_TIMEOUT;
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,11 @@ interface BridgeInterface {
|
||||
* @param int $timeout The cache timeout in seconds
|
||||
*/
|
||||
public function setCacheTimeout($timeout);
|
||||
|
||||
/**
|
||||
* Returns the cache timeout
|
||||
*
|
||||
* @return int Cache timeout
|
||||
*/
|
||||
public function getCacheTimeout();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user