Вход Регистрация
Файл: concrete5.7.5.6/concrete/vendor/zendframework/zend-cache/src/Storage/Event.php
Строк: 69
<?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 ZendCacheStorage;

use 
ArrayObject;
use 
ZendEventManagerEvent 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($nameStorageInterface $storageArrayObject $params)
    {
        
parent::__construct($name$storage$params);
    }

    
/**
     * Set the event target/context
     *
     * @param  StorageInterface $target
     * @return Event
     * @see    ZendEventManagerEvent::setTarget()
     */
    
public function setTarget($target)
    {
        return 
$this->setStorage($target);
    }

    
/**
     * Alias of setTarget
     *
     * @param  StorageInterface $storage
     * @return Event
     * @see    ZendEventManagerEvent::setTarget()
     */
    
public function setStorage(StorageInterface $storage)
    {
        
$this->target $storage;
        return 
$this;
    }

    
/**
     * Alias of getTarget
     *
     * @return StorageInterface
     */
    
public function getStorage()
    {
        return 
$this->getTarget();
    }
}
Онлайн: 1
Реклама