1 | <?php |
||
5 | class OrtcConfig |
||
6 | { |
||
7 | /** |
||
8 | * Realtime.co balanced url. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $balancedUrl = 'https://ortc-developers.realtime.co/server/2.1?appkey={APP_KEY}'; |
||
13 | |||
14 | /** |
||
15 | * Your realtime.co application key. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $applicationKey; |
||
20 | |||
21 | /** |
||
22 | * Your realtime.co private key. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $privateKey; |
||
27 | |||
28 | /** |
||
29 | * authentication path. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $authenticationPath = '/authenticate'; |
||
34 | |||
35 | /** |
||
36 | * send push message to channel(s) path. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $sendPath = '/send'; |
||
41 | |||
42 | /** |
||
43 | * maximum size of message chunk in bytes. |
||
44 | * |
||
45 | * @var int |
||
46 | */ |
||
47 | protected $maxChunkSize = 700; |
||
48 | |||
49 | /** |
||
50 | * maximum size of message chunk in bytes. |
||
51 | * |
||
52 | * @var int |
||
53 | */ |
||
54 | protected $batchPoolSize = 5; |
||
55 | |||
56 | /** |
||
57 | * pre concatenating string for every message chunks. |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $preMessageString = '{RANDOM}_{PART}-{TOTAL_PARTS}_'; |
||
62 | |||
63 | /** |
||
64 | * verify ssl/tls certificate. |
||
65 | * |
||
66 | * @var bool |
||
67 | */ |
||
68 | protected $verifySsl = true; |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 5 | public function getApplicationKey() |
|
77 | |||
78 | /** |
||
79 | * @param string $applicationKey |
||
80 | * @return $this |
||
81 | */ |
||
82 | 5 | public function setApplicationKey($applicationKey) |
|
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | 3 | public function getBalancedUrl() |
|
96 | |||
97 | /** |
||
98 | * @param string $balancedUrl |
||
99 | * @return $this |
||
100 | */ |
||
101 | 1 | public function setBalancedUrl($balancedUrl) |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 4 | public function getPrivateKey() |
|
115 | |||
116 | /** |
||
117 | * @param string $privateKey |
||
118 | * @return $this |
||
119 | */ |
||
120 | 3 | public function setPrivateKey($privateKey) |
|
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | 3 | public function getAuthenticationPath() |
|
134 | |||
135 | /** |
||
136 | * @param string $authenticationPath |
||
137 | * @return $this |
||
138 | */ |
||
139 | 1 | public function setAuthenticationPath($authenticationPath) |
|
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | 3 | public function getSendPath() |
|
153 | |||
154 | /** |
||
155 | * @param string $sendPath |
||
156 | * @return $this |
||
157 | */ |
||
158 | 1 | public function setSendPath($sendPath) |
|
164 | |||
165 | /** |
||
166 | * @return int |
||
167 | */ |
||
168 | 3 | public function getMaxChunkSize() |
|
172 | |||
173 | /** |
||
174 | * @param int $maxChunkSize |
||
175 | * @return $this |
||
176 | */ |
||
177 | 2 | public function setMaxChunkSize($maxChunkSize) |
|
183 | |||
184 | /** |
||
185 | * @return string |
||
186 | */ |
||
187 | 3 | public function getPreMessageString() |
|
191 | |||
192 | /** |
||
193 | * @param string $preMessageString |
||
194 | * @return $this |
||
195 | */ |
||
196 | 1 | public function setPreMessageString($preMessageString) |
|
202 | |||
203 | /** |
||
204 | * @return bool |
||
205 | */ |
||
206 | 1 | public function isVerifySsl() |
|
210 | |||
211 | /** |
||
212 | * @param bool $verifySsl |
||
213 | * @return $this |
||
214 | */ |
||
215 | 1 | public function setVerifySsl($verifySsl) |
|
221 | |||
222 | /** |
||
223 | * @return int |
||
224 | */ |
||
225 | 2 | public function getBatchPoolSize() |
|
229 | |||
230 | /** |
||
231 | * @param int $batchPoolSize |
||
232 | * @return $this |
||
233 | */ |
||
234 | 1 | public function setBatchPoolSize($batchPoolSize) |
|
240 | } |
||
241 |