Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Cache / Storage / Event.php
bloba9e3c2a82e7c6ea197a83f565e31a34c83cce47e
1 <?php
2 /**
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
8 */
10 namespace Zend\Cache\Storage;
12 use ArrayObject;
13 use Zend\EventManager\Event as BaseEvent;
15 class Event extends BaseEvent
17 /**
18 * Constructor
20 * Accept a storage adapter and its parameters.
22 * @param string $name Event name
23 * @param StorageInterface $storage
24 * @param ArrayObject $params
26 public function __construct($name, StorageInterface $storage, ArrayObject $params)
28 parent::__construct($name, $storage, $params);
31 /**
32 * Set the event target/context
34 * @param StorageInterface $target
35 * @return Event
36 * @see Zend\EventManager\Event::setTarget()
38 public function setTarget($target)
40 return $this->setStorage($target);
43 /**
44 * Alias of setTarget
46 * @param StorageInterface $storage
47 * @return Event
48 * @see Zend\EventManager\Event::setTarget()
50 public function setStorage(StorageInterface $storage)
52 $this->target = $storage;
53 return $this;
56 /**
57 * Alias of getTarget
59 * @return StorageInterface
61 public function getStorage()
63 return $this->getTarget();