folding Persistance\PurgeLimiter into Data\Filesystem

This commit is contained in:
El RIDO
2021-06-07 21:53:42 +02:00
parent f46221e7c3
commit ae486d651b
5 changed files with 94 additions and 46 deletions

View File

@@ -13,6 +13,7 @@
namespace PrivateBin\Persistence;
use Exception;
use PrivateBin\Data\AbstractData;
/**
* AbstractPersistence
@@ -30,6 +31,15 @@ abstract class AbstractPersistence
*/
private static $_path = 'data';
/**
* data storage to use to persist something
*
* @access private
* @static
* @var AbstractData
*/
protected static $_store;
/**
* set the path
*
@@ -42,6 +52,18 @@ abstract class AbstractPersistence
self::$_path = $path;
}
/**
* set the path
*
* @access public
* @static
* @param AbstractData $store
*/
public static function setStore(AbstractData $store)
{
self::$_store = $store;
}
/**
* get the path
*