composer package updates
[openemr.git] / vendor / zendframework / zend-memory / src / Container / ContainerInterface.php
blobfb8d74941c16448869c7201b7916fcf82bd0fd2c
1 <?php
2 /**
3 * @see https://github.com/zendframework/zend-memory for the canonical source repository
4 * @copyright Copyright (c) 2005-2018 Zend Technologies USA Inc. (https://www.zend.com)
5 * @license https://github.com/zendframework/zend-memory/blob/master/LICENSE.md New BSD License
6 */
8 namespace Zend\Memory\Container;
10 /**
11 * Memory value container interface
13 interface ContainerInterface
15 /**
16 * Get string value reference
18 * _Must_ be used for value access before PHP v 5.2
19 * or _may_ be used for performance considerations
21 * @return &string
23 public function &getRef();
25 /**
26 * Signal, that value is updated by external code.
28 * Should be used together with getRef()
30 public function touch();
32 /**
33 * Lock object in memory.
35 public function lock();
37 /**
38 * Unlock object
40 public function unlock();
42 /**
43 * Return true if object is locked
45 * @return bool
47 public function isLocked();