mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-29 12:50:18 +02:00
[lib] Split Bridge/Cache/Format into one file per class
The files have grown to a size where it is necessary to search for a class in a file. This commit splits the content into one file per class. RSS-Bridge will require implementations and the implementations will require (once) the interfaces.
This commit is contained in:
@@ -1,25 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
* All cache logic
|
||||
* Note : adapter are store in other place
|
||||
*/
|
||||
|
||||
interface CacheInterface{
|
||||
public function loadData();
|
||||
public function saveData($datas);
|
||||
public function getTime();
|
||||
}
|
||||
|
||||
abstract class CacheAbstract implements CacheInterface{
|
||||
protected $param;
|
||||
|
||||
public function prepare(array $param){
|
||||
$this->param = $param;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
require_once(__DIR__ . '/CacheInterface.php');
|
||||
class Cache{
|
||||
|
||||
static protected $dirCache;
|
||||
|
Reference in New Issue
Block a user