| 1 | <?php |
||
| 7 | class FaultEvent extends Event |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $id; |
||
| 13 | /** |
||
| 14 | * @var \Exception |
||
| 15 | */ |
||
| 16 | protected $exception; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var RequestEvent |
||
| 20 | */ |
||
| 21 | protected $requestEvent; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * FaultEvent constructor. |
||
| 25 | * @param string $id |
||
| 26 | * @param \Exception $exception |
||
| 27 | * @param RequestEvent $requestEvent |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(string $id, \Exception $exception, RequestEvent $requestEvent) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 2 | public function getId(): string |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return \Exception |
||
| 46 | */ |
||
| 47 | 2 | public function getException(): \Exception |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return RequestEvent |
||
| 54 | */ |
||
| 55 | 2 | public function getRequestEvent(): RequestEvent |
|
| 59 | } |
||
| 60 |