| 1 | <?php |
||
| 8 | class ConsumeEvent extends Event |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var EnvelopeInterface |
||
| 12 | */ |
||
| 13 | private $envelope; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var mixed |
||
| 17 | */ |
||
| 18 | private $result; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param EnvelopeInterface $envelope |
||
| 22 | * @param mixed $result |
||
| 23 | */ |
||
| 24 | 3 | public function __construct(EnvelopeInterface $envelope, $result = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return EnvelopeInterface |
||
| 32 | */ |
||
| 33 | 1 | public function getEnvelope() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param mixed $result |
||
| 40 | */ |
||
| 41 | 1 | public function setResult($result) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | 1 | public function getResult() |
|
| 53 | } |
||
| 54 |