Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class ThrowableFiredEvent extends Event |
||
18 | { |
||
19 | const THROWABLE_FIRED_EVENT = 'throwable_fired_event'; |
||
20 | protected $throwable; |
||
21 | protected $devMode; |
||
22 | protected $httpResponse; |
||
23 | |||
24 | public function __construct(\Throwable $throwable, $devMode, HttpResponse $httpResponse) |
||
25 | { |
||
26 | $this->throwable = $throwable; |
||
27 | $this->devMode = $devMode; |
||
28 | $this->httpResponse = $httpResponse; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return \Throwable |
||
33 | */ |
||
34 | public function getThrowable(): \Throwable |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function isDevMode(): bool |
||
43 | { |
||
44 | return $this->devMode; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Get the value of httpResponse |
||
49 | */ |
||
50 | public function getHttpResponse() |
||
53 | } |
||
54 | } |
||
55 |