@@ -70,7 +70,7 @@ public function getDatabase(): string
7070 /**
7171 * @throws PhpfastcacheLogicException
7272 */
73- public function setDatabase (string $ database ): Config
73+ public function setDatabase (string $ database ): static
7474 {
7575 return $ this ->setProperty ('database ' , $ database );
7676 }
@@ -83,7 +83,7 @@ public function getCollection(): string
8383 /**
8484 * @throws PhpfastcacheLogicException
8585 */
86- public function setCollection (string $ collection ): Config
86+ public function setCollection (string $ collection ): static
8787 {
8888 return $ this ->setProperty ('collection ' , $ collection );
8989 }
@@ -98,10 +98,9 @@ public function getEndpoint(): string|array
9898
9999 /**
100100 * @param string|array<string> $endpoint
101- * @return $this
102101 * @throws PhpfastcacheLogicException
103102 */
104- public function setEndpoint (string |array $ endpoint ): Config
103+ public function setEndpoint (string |array $ endpoint ): static
105104 {
106105 return $ this ->setProperty ('endpoint ' , $ endpoint );
107106 }
@@ -114,7 +113,7 @@ public function getConnection(): string
114113 /**
115114 * @throws PhpfastcacheLogicException
116115 */
117- public function setConnection (string $ connection ): Config
116+ public function setConnection (string $ connection ): static
118117 {
119118 return $ this ->setProperty ('connection ' , $ connection );
120119 }
@@ -127,7 +126,7 @@ public function getAuthType(): string
127126 /**
128127 * @throws PhpfastcacheLogicException
129128 */
130- public function setAuthType (string $ authType ): Config
129+ public function setAuthType (string $ authType ): static
131130 {
132131 return $ this ->setProperty ('authType ' , $ authType );
133132 }
@@ -140,7 +139,7 @@ public function getAuthUser(): string
140139 /**
141140 * @throws PhpfastcacheLogicException
142141 */
143- public function setAuthUser (string $ authUser ): Config
142+ public function setAuthUser (string $ authUser ): static
144143 {
145144 return $ this ->setProperty ('authUser ' , $ authUser );
146145 }
@@ -153,7 +152,7 @@ public function getAuthPasswd(): string
153152 /**
154153 * @throws PhpfastcacheLogicException
155154 */
156- public function setAuthPasswd (string $ authPasswd ): Config
155+ public function setAuthPasswd (string $ authPasswd ): static
157156 {
158157 return $ this ->setProperty ('authPasswd ' , $ authPasswd );
159158 }
@@ -168,10 +167,9 @@ public function getAuthJwt(): ?string
168167
169168 /**
170169 * @param string|null $authJwt
171- * @return Config
172170 * @throws PhpfastcacheLogicException
173171 */
174- public function setAuthJwt (?string $ authJwt ): Config
172+ public function setAuthJwt (?string $ authJwt ): static
175173 {
176174 return $ this ->setProperty ('authJwt ' , $ authJwt );
177175 }
@@ -184,7 +182,7 @@ public function isAutoCreate(): bool
184182 /**
185183 * @throws PhpfastcacheLogicException
186184 */
187- public function setAutoCreate (bool $ autoCreate ): Config
185+ public function setAutoCreate (bool $ autoCreate ): static
188186 {
189187 return $ this ->setProperty ('autoCreate ' , $ autoCreate );
190188 }
@@ -197,7 +195,7 @@ public function getConnectTimeout(): int
197195 /**
198196 * @throws PhpfastcacheLogicException
199197 */
200- public function setConnectTimeout (int $ connectTimeout ): Config
198+ public function setConnectTimeout (int $ connectTimeout ): static
201199 {
202200 return $ this ->setProperty ('connectTimeout ' , $ connectTimeout );
203201 }
@@ -210,7 +208,7 @@ public function getRequestTimeout(): int
210208 /**
211209 * @throws PhpfastcacheLogicException
212210 */
213- public function setRequestTimeout (int $ requestTimeout ): Config
211+ public function setRequestTimeout (int $ requestTimeout ): static
214212 {
215213 return $ this ->setProperty ('requestTimeout ' , $ requestTimeout );
216214 }
@@ -223,7 +221,7 @@ public function getUpdatePolicy(): string
223221 /**
224222 * @throws PhpfastcacheLogicException
225223 */
226- public function setUpdatePolicy (string $ updatePolicy ): Config
224+ public function setUpdatePolicy (string $ updatePolicy ): static
227225 {
228226 return $ this ->setProperty ('updatePolicy ' , $ updatePolicy );
229227 }
@@ -236,7 +234,7 @@ public function isVerifyCert(): bool
236234 /**
237235 * @throws PhpfastcacheLogicException
238236 */
239- public function setVerifyCert (bool $ verifyCert ): Config
237+ public function setVerifyCert (bool $ verifyCert ): static
240238 {
241239 return $ this ->setProperty ('verifyCert ' , $ verifyCert );
242240 }
@@ -249,7 +247,7 @@ public function isSelfSigned(): bool
249247 /**
250248 * @throws PhpfastcacheLogicException
251249 */
252- public function setSelfSigned (bool $ selfSigned ): Config
250+ public function setSelfSigned (bool $ selfSigned ): static
253251 {
254252 return $ this ->setProperty ('selfSigned ' , $ selfSigned );
255253 }
@@ -262,7 +260,7 @@ public function getCiphers(): string
262260 /**
263261 * @throws PhpfastcacheLogicException
264262 */
265- public function setCiphers (string $ ciphers ): Config
263+ public function setCiphers (string $ ciphers ): static
266264 {
267265 return $ this ->setProperty ('ciphers ' , $ ciphers );
268266 }
@@ -277,10 +275,9 @@ public function getTraceFunction(): ?\Closure
277275
278276 /**
279277 * @param \Closure|null $traceFunction
280- * @return Config
281278 * @throws PhpfastcacheLogicException
282279 */
283- public function setTraceFunction (?\Closure $ traceFunction ): Config
280+ public function setTraceFunction (?\Closure $ traceFunction ): static
284281 {
285282 return $ this ->setProperty ('traceFunction ' , $ traceFunction );
286283 }
0 commit comments