| 1 | <?php |
||
| 18 | class ExceptionEvent extends Event |
||
| 19 | { |
||
| 20 | /** @var CommandInterface */ |
||
| 21 | private $command; |
||
| 22 | |||
| 23 | /** @var Exception */ |
||
| 24 | private $exception; |
||
| 25 | |||
| 26 | /** @var ResponseInterface|null */ |
||
| 27 | private $response = null; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | * @param CommandInterface $command |
||
| 32 | * @param Exception $exception |
||
| 33 | */ |
||
| 34 | public function __construct(CommandInterface $command, Exception $exception) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | * @return CommandInterface |
||
| 43 | */ |
||
| 44 | public function getCommand() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * @return Exception |
||
| 52 | */ |
||
| 53 | public function getException() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * |
||
| 60 | * @return ResponseInterface|null |
||
| 61 | */ |
||
| 62 | public function getResponse() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * |
||
| 69 | * @param ResponseInterface $response |
||
| 70 | */ |
||
| 71 | public function setResponse(ResponseInterface $response) |
||
| 75 | } |
||
| 76 |