| 1 | <?php |
||
| 13 | abstract class AbstractAdapter implements ChainableAdapter |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Storage\StorageInterface |
||
| 17 | */ |
||
| 18 | protected $storage; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Returns the persistent storage handler |
||
| 22 | * |
||
| 23 | * Session storage is used by default unless a different storage adapter has been set. |
||
| 24 | * |
||
| 25 | * @return Storage\StorageInterface |
||
| 26 | */ |
||
| 27 | public function getStorage() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Sets the persistent storage handler |
||
| 38 | * |
||
| 39 | * @param Storage\StorageInterface $storage |
||
| 40 | * @return AbstractAdapter Provides a fluent interface |
||
| 41 | */ |
||
| 42 | public function setStorage(Storage\StorageInterface $storage) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Check if this adapter is satisfied or not |
||
| 50 | * |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function isSatisfied() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set if this adapter is satisfied or not |
||
| 61 | * |
||
| 62 | * @param bool $bool |
||
| 63 | * @return AbstractAdapter |
||
| 64 | */ |
||
| 65 | public function setSatisfied($bool = true) |
||
| 72 | } |
||
| 73 |