summaryrefslogtreecommitdiffstats
path: root/vendor/gipfl/zfdbstore/src/Store.php
blob: cdc7ab1501fbda244b690885fb109d191950aa36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace gipfl\ZfDbStore;

interface Store
{
    /**
     * Function used for saving changes and log the activity.
     * To be extended as needed (see BaseStore.php)
     *
     * @param StorableInterface $storable
     * @return mixed
     */
    public function store(StorableInterface $storable);

    /**
     * @param array|string $key
     * @param string $className
     * @return StorableInterface
     */
    public function load($key, $className);
    public function exists(StorableInterface $storable);
    public function delete(StorableInterface $storable);
}