1 | <?php |
||
11 | class Client |
||
12 | { |
||
13 | /** |
||
14 | * @var Raven_Client |
||
15 | */ |
||
16 | protected $raven; |
||
17 | /** |
||
18 | * @var Raven_ErrorHandler |
||
19 | */ |
||
20 | protected $errorHandler; |
||
21 | /** |
||
22 | * @var ListenerAggregateInterface |
||
23 | */ |
||
24 | protected $errorHandlerListener; |
||
25 | /** |
||
26 | * @var ClientOptions |
||
27 | */ |
||
28 | protected $options; |
||
29 | |||
30 | /** |
||
31 | * Client constructor. |
||
32 | * |
||
33 | * @param Raven_Client $raven |
||
34 | * @param ClientOptions $options |
||
35 | * @param Raven_ErrorHandler $errorHandler |
||
36 | */ |
||
37 | public function __construct(Raven_Client $raven, ClientOptions $options, Raven_ErrorHandler $errorHandler = null) |
||
43 | |||
44 | /** |
||
45 | * @return Raven_Client |
||
46 | */ |
||
47 | public function getRaven() |
||
51 | |||
52 | /** |
||
53 | * @return Raven_ErrorHandler |
||
54 | */ |
||
55 | public function getErrorHandler() |
||
62 | |||
63 | /** |
||
64 | * @return ClientOptions |
||
65 | */ |
||
66 | public function getOptions() |
||
70 | |||
71 | /** |
||
72 | * @return ListenerAggregateInterface |
||
73 | */ |
||
74 | public function getErrorHandlerListener() |
||
81 | |||
82 | /** |
||
83 | * @param ListenerAggregateInterface $errorHandlerListener |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setErrorHandlerListener(ListenerAggregateInterface $errorHandlerListener) |
||
91 | } |
||
92 |