@@ -93,11 +93,11 @@ public function database($db)
93
93
}
94
94
95
95
/**
96
- * @return float
96
+ * @return int
97
97
*/
98
- public function getTimeOut (): float
98
+ public function getTimeOut (): int
99
99
{
100
- return $ this ->get ('max_execution_time ' );
100
+ return intval ( $ this ->get ('max_execution_time ' ) );
101
101
}
102
102
103
103
/**
@@ -172,10 +172,13 @@ public function makeSessionId()
172
172
}
173
173
174
174
/**
175
- * @param float $time
175
+ *
176
+ * max_execution_time - is integer in Seconds clickhouse source
177
+ *
178
+ * @param int $time
176
179
* @return $this
177
180
*/
178
- public function max_execution_time (float $ time )
181
+ public function max_execution_time (int $ time )
179
182
{
180
183
$ this ->set ('max_execution_time ' ,$ time );
181
184
return $ this ;
@@ -193,7 +196,7 @@ public function getSettings()
193
196
* @param array $settings_array
194
197
* @return $this
195
198
*/
196
- public function apply ($ settings_array )
199
+ public function apply (array $ settings_array )
197
200
{
198
201
foreach ($ settings_array as $ key => $ value ) {
199
202
$ this ->set ($ key , $ value );
@@ -205,15 +208,15 @@ public function apply($settings_array)
205
208
/**
206
209
* @param int|bool $flag
207
210
*/
208
- public function setReadOnlyUser ($ flag )
211
+ public function setReadOnlyUser (mixed $ flag ): void
209
212
{
210
213
$ this ->_ReadOnlyUser = $ flag ;
211
214
}
212
215
213
216
/**
214
217
* @return bool
215
218
*/
216
- public function isReadOnlyUser ()
219
+ public function isReadOnlyUser (): bool
217
220
{
218
221
return $ this ->_ReadOnlyUser ;
219
222
}
@@ -222,7 +225,7 @@ public function isReadOnlyUser()
222
225
* @param string $name
223
226
* @return mixed|null
224
227
*/
225
- public function getSetting ($ name )
228
+ public function getSetting (string $ name )
226
229
{
227
230
if (!isset ($ this ->settings [$ name ])) {
228
231
return null ;
0 commit comments