05402ef304
- @version in file header level isn't used on code docs, it is intended for API versions at class or method level - avoids needing to update all these files on version increment - avoids needing to regenerate SRI hashes for privatebin.js through extra phpunit run - simplifies VERSION_FILES list - avoids having to filter above list during loop - adds a few missing doc bloc headers
43 lines
820 B
PHP
43 lines
820 B
PHP
<?php
|
|
/**
|
|
* PrivateBin
|
|
*
|
|
* a zero-knowledge paste bin
|
|
*
|
|
* @link https://github.com/PrivateBin/PrivateBin
|
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
|
*/
|
|
|
|
namespace PrivateBin\Persistence;
|
|
|
|
use PrivateBin\Data\AbstractData;
|
|
|
|
/**
|
|
* AbstractPersistence
|
|
*
|
|
* persists data in PHP files
|
|
*/
|
|
abstract class AbstractPersistence
|
|
{
|
|
/**
|
|
* data storage to use to persist something
|
|
*
|
|
* @access private
|
|
* @static
|
|
* @var AbstractData
|
|
*/
|
|
protected static $_store;
|
|
|
|
/**
|
|
* set the path
|
|
*
|
|
* @access public
|
|
* @static
|
|
* @param AbstractData $store
|
|
*/
|
|
public static function setStore(AbstractData $store)
|
|
{
|
|
self::$_store = $store;
|
|
}
|
|
}
|