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\Cache\Storage
;
13 use Zend\EventManager\Event
as BaseEvent
;
15 class Event
extends BaseEvent
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);
32 * Set the event target/context
34 * @param StorageInterface $target
36 * @see Zend\EventManager\Event::setTarget()
38 public function setTarget($target)
40 return $this->setStorage($target);
46 * @param StorageInterface $storage
48 * @see Zend\EventManager\Event::setTarget()
50 public function setStorage(StorageInterface
$storage)
52 $this->target
= $storage;
59 * @return StorageInterface
61 public function getStorage()
63 return $this->getTarget();