Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AbstractPersistence
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setStore
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * PrivateBin
4 *
5 * a zero-knowledge paste bin
6 *
7 * @link      https://github.com/PrivateBin/PrivateBin
8 * @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
9 * @license   https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
10 * @version   1.7.2
11 */
12
13namespace PrivateBin\Persistence;
14
15use PrivateBin\Data\AbstractData;
16
17/**
18 * AbstractPersistence
19 *
20 * persists data in PHP files
21 */
22abstract class AbstractPersistence
23{
24    /**
25     * data storage to use to persist something
26     *
27     * @access private
28     * @static
29     * @var AbstractData
30     */
31    protected static $_store;
32
33    /**
34     * set the path
35     *
36     * @access public
37     * @static
38     * @param  AbstractData $store
39     */
40    public static function setStore(AbstractData $store)
41    {
42        self::$_store = $store;
43    }
44}