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

class 
PostEvent extends Event
{
    
/**
     * The result/return value
     *
     * @var mixed
     */
    
protected $result;

    
/**
     * Constructor
     *
     * Accept a target and its parameters.
     *
     * @param  string           $name
     * @param  StorageInterface $storage
     * @param  ArrayObject      $params
     * @param  mixed            $result
     */
    
public function __construct($nameStorageInterface $storageArrayObject $params, & $result)
    {
        
parent::__construct($name$storage$params);
        
$this->setResult($result);
    }

    
/**
     * Set the result/return value
     *
     * @param  mixed $value
     * @return PostEvent
     */
    
public function setResult(& $value)
    {
        
$this->result = & $value;
        return 
$this;
    }

    
/**
     * Get the result/return value
     *
     * @return mixed
     */
    
public function & getResult()
    {
        return 
$this->result;
    }
}
Онлайн: 2
Реклама