1 | <?php |
||
7 | abstract class AbstractAdapter implements ChainableAdapter |
||
8 | { |
||
9 | /** |
||
10 | * @var Storage\StorageInterface |
||
11 | */ |
||
12 | protected $storage; |
||
13 | |||
14 | /** |
||
15 | * Returns the persistent storage handler |
||
16 | * |
||
17 | * Session storage is used by default unless a different storage adapter has been set. |
||
18 | * |
||
19 | * @return Storage\StorageInterface |
||
20 | */ |
||
21 | public function getStorage() |
||
29 | |||
30 | /** |
||
31 | * Sets the persistent storage handler |
||
32 | * |
||
33 | * @param Storage\StorageInterface $storage |
||
34 | * @return AbstractAdapter Provides a fluent interface |
||
35 | */ |
||
36 | public function setStorage(Storage\StorageInterface $storage) |
||
41 | |||
42 | /** |
||
43 | * Check if this adapter is satisfied or not |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function isSatisfied() |
||
52 | |||
53 | /** |
||
54 | * Set if this adapter is satisfied or not |
||
55 | * |
||
56 | * @param bool $bool |
||
57 | * @return AbstractAdapter |
||
58 | */ |
||
59 | public function setSatisfied($bool = true) |
||
66 | } |
||
67 |