@@ -70,7 +70,7 @@ public function getDatabase(): string
70
70
/**
71
71
* @throws PhpfastcacheLogicException
72
72
*/
73
- public function setDatabase (string $ database ): Config
73
+ public function setDatabase (string $ database ): static
74
74
{
75
75
return $ this ->setProperty ('database ' , $ database );
76
76
}
@@ -83,7 +83,7 @@ public function getCollection(): string
83
83
/**
84
84
* @throws PhpfastcacheLogicException
85
85
*/
86
- public function setCollection (string $ collection ): Config
86
+ public function setCollection (string $ collection ): static
87
87
{
88
88
return $ this ->setProperty ('collection ' , $ collection );
89
89
}
@@ -98,10 +98,9 @@ public function getEndpoint(): string|array
98
98
99
99
/**
100
100
* @param string|array<string> $endpoint
101
- * @return $this
102
101
* @throws PhpfastcacheLogicException
103
102
*/
104
- public function setEndpoint (string |array $ endpoint ): Config
103
+ public function setEndpoint (string |array $ endpoint ): static
105
104
{
106
105
return $ this ->setProperty ('endpoint ' , $ endpoint );
107
106
}
@@ -114,7 +113,7 @@ public function getConnection(): string
114
113
/**
115
114
* @throws PhpfastcacheLogicException
116
115
*/
117
- public function setConnection (string $ connection ): Config
116
+ public function setConnection (string $ connection ): static
118
117
{
119
118
return $ this ->setProperty ('connection ' , $ connection );
120
119
}
@@ -127,7 +126,7 @@ public function getAuthType(): string
127
126
/**
128
127
* @throws PhpfastcacheLogicException
129
128
*/
130
- public function setAuthType (string $ authType ): Config
129
+ public function setAuthType (string $ authType ): static
131
130
{
132
131
return $ this ->setProperty ('authType ' , $ authType );
133
132
}
@@ -140,7 +139,7 @@ public function getAuthUser(): string
140
139
/**
141
140
* @throws PhpfastcacheLogicException
142
141
*/
143
- public function setAuthUser (string $ authUser ): Config
142
+ public function setAuthUser (string $ authUser ): static
144
143
{
145
144
return $ this ->setProperty ('authUser ' , $ authUser );
146
145
}
@@ -153,7 +152,7 @@ public function getAuthPasswd(): string
153
152
/**
154
153
* @throws PhpfastcacheLogicException
155
154
*/
156
- public function setAuthPasswd (string $ authPasswd ): Config
155
+ public function setAuthPasswd (string $ authPasswd ): static
157
156
{
158
157
return $ this ->setProperty ('authPasswd ' , $ authPasswd );
159
158
}
@@ -168,10 +167,9 @@ public function getAuthJwt(): ?string
168
167
169
168
/**
170
169
* @param string|null $authJwt
171
- * @return Config
172
170
* @throws PhpfastcacheLogicException
173
171
*/
174
- public function setAuthJwt (?string $ authJwt ): Config
172
+ public function setAuthJwt (?string $ authJwt ): static
175
173
{
176
174
return $ this ->setProperty ('authJwt ' , $ authJwt );
177
175
}
@@ -184,7 +182,7 @@ public function isAutoCreate(): bool
184
182
/**
185
183
* @throws PhpfastcacheLogicException
186
184
*/
187
- public function setAutoCreate (bool $ autoCreate ): Config
185
+ public function setAutoCreate (bool $ autoCreate ): static
188
186
{
189
187
return $ this ->setProperty ('autoCreate ' , $ autoCreate );
190
188
}
@@ -197,7 +195,7 @@ public function getConnectTimeout(): int
197
195
/**
198
196
* @throws PhpfastcacheLogicException
199
197
*/
200
- public function setConnectTimeout (int $ connectTimeout ): Config
198
+ public function setConnectTimeout (int $ connectTimeout ): static
201
199
{
202
200
return $ this ->setProperty ('connectTimeout ' , $ connectTimeout );
203
201
}
@@ -210,7 +208,7 @@ public function getRequestTimeout(): int
210
208
/**
211
209
* @throws PhpfastcacheLogicException
212
210
*/
213
- public function setRequestTimeout (int $ requestTimeout ): Config
211
+ public function setRequestTimeout (int $ requestTimeout ): static
214
212
{
215
213
return $ this ->setProperty ('requestTimeout ' , $ requestTimeout );
216
214
}
@@ -223,7 +221,7 @@ public function getUpdatePolicy(): string
223
221
/**
224
222
* @throws PhpfastcacheLogicException
225
223
*/
226
- public function setUpdatePolicy (string $ updatePolicy ): Config
224
+ public function setUpdatePolicy (string $ updatePolicy ): static
227
225
{
228
226
return $ this ->setProperty ('updatePolicy ' , $ updatePolicy );
229
227
}
@@ -236,7 +234,7 @@ public function isVerifyCert(): bool
236
234
/**
237
235
* @throws PhpfastcacheLogicException
238
236
*/
239
- public function setVerifyCert (bool $ verifyCert ): Config
237
+ public function setVerifyCert (bool $ verifyCert ): static
240
238
{
241
239
return $ this ->setProperty ('verifyCert ' , $ verifyCert );
242
240
}
@@ -249,7 +247,7 @@ public function isSelfSigned(): bool
249
247
/**
250
248
* @throws PhpfastcacheLogicException
251
249
*/
252
- public function setSelfSigned (bool $ selfSigned ): Config
250
+ public function setSelfSigned (bool $ selfSigned ): static
253
251
{
254
252
return $ this ->setProperty ('selfSigned ' , $ selfSigned );
255
253
}
@@ -262,7 +260,7 @@ public function getCiphers(): string
262
260
/**
263
261
* @throws PhpfastcacheLogicException
264
262
*/
265
- public function setCiphers (string $ ciphers ): Config
263
+ public function setCiphers (string $ ciphers ): static
266
264
{
267
265
return $ this ->setProperty ('ciphers ' , $ ciphers );
268
266
}
@@ -277,10 +275,9 @@ public function getTraceFunction(): ?\Closure
277
275
278
276
/**
279
277
* @param \Closure|null $traceFunction
280
- * @return Config
281
278
* @throws PhpfastcacheLogicException
282
279
*/
283
- public function setTraceFunction (?\Closure $ traceFunction ): Config
280
+ public function setTraceFunction (?\Closure $ traceFunction ): static
284
281
{
285
282
return $ this ->setProperty ('traceFunction ' , $ traceFunction );
286
283
}
0 commit comments