Source of file Locked.php
Size: 1,680 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Memory/Container/Locked.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Memory\Container; /** * Memory value container * * Locked (always stored in memory). */ class Locked extends AbstractContainer { /** * Value object * * @var string */ public $value; /** * Object constructor * * @param string $value */ public function __construct($value) { $this->value = $value; } /** * Lock object in memory. */ public function lock() { /* Do nothing */ } /** * Unlock object */ public function unlock() { /* Do nothing */ } /** * Return true if object is locked * * @return bool */ public function isLocked() { return true; } /** * Get string value reference * * _Must_ be used for value access before PHP v 5.2 * or _may_ be used for performance considerations * * @return &string */ public function &getRef() { return $this->value; } /** * Signal, that value is updated by external code. * * Should be used together with getRef() */ public function touch() { /* Do nothing */ } /** * Destroy memory container and remove it from memory manager list */ public function destroy() { /* Do nothing */ } } |