| 1 | <?php |
||
| 5 | class FaultEvent extends Event |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $id; |
||
| 11 | /** |
||
| 12 | * @var \Exception |
||
| 13 | */ |
||
| 14 | protected $exception; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var RequestEvent |
||
| 18 | */ |
||
| 19 | protected $requestEvent; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * FaultEvent constructor. |
||
| 23 | * @param string $id |
||
| 24 | * @param \Exception $exception |
||
| 25 | * @param RequestEvent $requestEvent |
||
| 26 | */ |
||
| 27 | 6 | public function __construct(string $id, \Exception $exception, RequestEvent $requestEvent) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 6 | public function getId(): string |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return \Exception |
||
| 44 | */ |
||
| 45 | 6 | public function getException(): \Exception |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return RequestEvent |
||
| 52 | */ |
||
| 53 | 6 | public function getRequestEvent(): RequestEvent |
|
| 57 | } |
||
| 58 |