3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Session\Storage
;
18 * Session storage interface
20 * Defines the minimum requirements for handling userland, in-script session
21 * storage (e.g., the $_SESSION superglobal array).
23 interface StorageInterface
extends Traversable
, ArrayAccess
, Serializable
, Countable
25 public function getRequestAccessTime();
27 public function lock($key = null);
28 public function isLocked($key = null);
29 public function unlock($key = null);
31 public function markImmutable();
32 public function isImmutable();
34 public function setMetadata($key, $value, $overwriteArray = false);
35 public function getMetadata($key = null);
37 public function clear($key = null);
39 public function fromArray(array $array);
40 public function toArray($metaData = false);