1 | <?php |
||
8 | class ClientOptions extends AbstractOptions |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $dsn; |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $options = []; |
||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | protected $registerExceptionHandler = false; |
||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | protected $registerErrorHandler = false; |
||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $registerShutdownFunction = false; |
||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $registerErrorListener = false; |
||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $errorHandlerListener = ErrorHandlerListener::class; |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getDsn() |
||
46 | |||
47 | /** |
||
48 | * @param string $dsn |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setDsn($dsn) |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getOptions() |
||
64 | |||
65 | /** |
||
66 | * @param array $options |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setOptions(array $options) |
||
74 | |||
75 | /** |
||
76 | * @return boolean |
||
77 | */ |
||
78 | public function isRegisterExceptionHandler() |
||
82 | |||
83 | /** |
||
84 | * @param boolean $registerExceptionHandler |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setRegisterExceptionHandler($registerExceptionHandler) |
||
92 | |||
93 | /** |
||
94 | * @return boolean |
||
95 | */ |
||
96 | public function isRegisterErrorHandler() |
||
100 | |||
101 | /** |
||
102 | * @param boolean $registerErrorHandler |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setRegisterErrorHandler($registerErrorHandler) |
||
110 | |||
111 | /** |
||
112 | * @return boolean |
||
113 | */ |
||
114 | public function isRegisterShutdownFunction() |
||
118 | |||
119 | /** |
||
120 | * @param boolean $registerShutdownFunction |
||
121 | * @return $this |
||
122 | */ |
||
123 | public function setRegisterShutdownFunction($registerShutdownFunction) |
||
128 | |||
129 | /** |
||
130 | * @return boolean |
||
131 | */ |
||
132 | public function isRegisterErrorListener() |
||
136 | |||
137 | /** |
||
138 | * @param boolean $registerErrorListener |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setRegisterErrorListener($registerErrorListener) |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getErrorHandlerListener() |
||
154 | |||
155 | /** |
||
156 | * @param string $errorHandlerListener |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setErrorHandlerListener($errorHandlerListener) |
||
164 | } |
||
165 |