Source of file Event.php
Size: 1,539 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Cache/Storage/Event.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | <?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\Cache\Storage; use ArrayObject; use Zend\EventManager\Event as BaseEvent; class Event extends BaseEvent { /** * Constructor * * Accept a storage adapter and its parameters. * * @param string $name Event name * @param StorageInterface $storage * @param ArrayObject $params */ public function __construct($name, StorageInterface $storage, ArrayObject $params) { parent::__construct($name, $storage, $params); } /** * Set the event target/context * * @param StorageInterface $target * @return Event * @see Zend\EventManager\Event::setTarget() */ public function setTarget($target) { return $this->setStorage($target); } /** * Alias of setTarget * * @param StorageInterface $storage * @return Event * @see Zend\EventManager\Event::setTarget() */ public function setStorage(StorageInterface $storage) { $this->target = $storage; return $this; } /** * Alias of getTarget * * @return StorageInterface */ public function getStorage() { return $this->getTarget(); } } |