1 | <?php |
||
16 | final class Client implements ClientInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var Raven_Client |
||
20 | */ |
||
21 | protected $raven; |
||
22 | /** |
||
23 | * @var null|Raven_ErrorHandler |
||
24 | */ |
||
25 | protected $errorHandler; |
||
26 | /** |
||
27 | * @var ListenerAggregateInterface |
||
28 | */ |
||
29 | protected $errorHandlerListener; |
||
30 | /** |
||
31 | * @var ClientOptions |
||
32 | */ |
||
33 | protected $options; |
||
34 | |||
35 | /** |
||
36 | * Client constructor. |
||
37 | * |
||
38 | * @param Raven_Client $raven |
||
39 | * @param ClientOptions $options |
||
40 | * @param Raven_ErrorHandler|null $errorHandler |
||
41 | * @param ErrorHandlerListener|null $errorHandlerListener |
||
42 | */ |
||
43 | 4 | public function __construct( |
|
54 | |||
55 | /** |
||
56 | * Get the Raven client. |
||
57 | * |
||
58 | * @return Raven_Client |
||
59 | */ |
||
60 | 4 | public function getRaven(): Raven_Client |
|
64 | |||
65 | /** |
||
66 | * Get the Raven error handler. |
||
67 | * |
||
68 | * @return Raven_ErrorHandler |
||
69 | */ |
||
70 | 3 | public function getErrorHandler(): Raven_ErrorHandler |
|
74 | |||
75 | /** |
||
76 | * Get the client options. |
||
77 | * |
||
78 | * @return ClientOptions |
||
79 | */ |
||
80 | 3 | public function getOptions(): ClientOptions |
|
84 | |||
85 | /** |
||
86 | * Get the error handler listener. |
||
87 | * |
||
88 | * @return ListenerAggregateInterface |
||
89 | */ |
||
90 | 3 | public function getErrorHandlerListener(): ListenerAggregateInterface |
|
94 | |||
95 | /** |
||
96 | * Set the error handler listener. |
||
97 | * |
||
98 | * @param ListenerAggregateInterface $errorHandlerListener |
||
99 | */ |
||
100 | 3 | public function setErrorHandlerListener(ListenerAggregateInterface $errorHandlerListener) |
|
104 | } |
||
105 |