1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* @see https://github.com/laminas/laminas-cache for the canonical source repository
* @copyright https://github.com/laminas/laminas-cache/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-cache/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Cache\Storage;
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($name, StorageInterface $storage, ArrayObject $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;
}
}