PrivateBin/lib/Persistence/AbstractPersistence.php

45 lines
840 B
PHP
Raw Normal View History

<?php
/**
2016-07-11 17:58:15 +08:00
* PrivateBin
*
* a zero-knowledge paste bin
*
2016-07-11 17:58:15 +08:00
* @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
2023-07-09 14:44:22 +08:00
* @version 1.5.2
*/
2016-12-13 01:43:23 +08:00
2016-12-13 01:49:08 +08:00
namespace PrivateBin\Persistence;
2016-07-21 23:09:48 +08:00
use PrivateBin\Data\AbstractData;
2016-07-21 23:09:48 +08:00
/**
* 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;
}
}