@@ -161,7 +161,7 @@ public function isSignatureAuthReady(): bool
161161 *
162162 * @return $this
163163 */
164- public function setApiKey (string $ apiKeyIdentifier , string $ key ): self
164+ public function setApiKey (string $ apiKeyIdentifier , string $ key ): static
165165 {
166166 $ this ->apiKeys [$ apiKeyIdentifier ] = $ key ;
167167 return $ this ;
@@ -194,7 +194,7 @@ public function getApiKey(string $apiKeyIdentifier, array $requestInfo): ?string
194194 *
195195 * @return $this
196196 */
197- public function setAccessToken (?AccessToken $ accessToken ): self
197+ public function setAccessToken (?AccessToken $ accessToken ): static
198198 {
199199 if (!($ accessToken instanceof AccessToken)) {
200200 throw new InvalidArgumentException ('Invalid access token: must be an instance of ' . AccessToken::class);
@@ -232,7 +232,7 @@ public function getAccessToken(): ?AccessToken
232232 *
233233 * @return $this
234234 */
235- public function setClientId (string $ clientId ): self
235+ public function setClientId (string $ clientId ): static
236236 {
237237 $ this ->clientId = $ clientId ;
238238 return $ this ;
@@ -255,7 +255,7 @@ public function getClientId(): string
255255 *
256256 * @return $this
257257 */
258- public function setClientSecret (string $ clientSecret ): self
258+ public function setClientSecret (string $ clientSecret ): static
259259 {
260260 $ this ->clientSecret = $ clientSecret ;
261261 return $ this ;
@@ -278,11 +278,11 @@ public function getClientSecret(): string
278278 *
279279 * @return $this
280280 */
281- public function setCountry (string $ country ): self
281+ public function setCountry (string $ country ): static
282282 {
283283 if (!is_string ($ country )) {
284284 throw new InvalidArgumentException ('Invalid country passed: must be a string ' );
285- } elseif (!Country::isValid ($ country )) {
285+ } else if (!Country::isValid ($ country )) {
286286 throw new InvalidArgumentException ('Invalid country passed: ' . $ country . '. Valid countries are: ' . implode (', ' , Country::all ()));
287287 }
288288
@@ -307,7 +307,7 @@ public function getCountry(): string
307307 *
308308 * @return $this
309309 */
310- public function setPrivateKey (string $ privateKey ): self
310+ public function setPrivateKey (string $ privateKey ): static
311311 {
312312 $ this ->privateKey = $ privateKey ;
313313 return $ this ;
@@ -330,7 +330,7 @@ public function getPrivateKey(): string
330330 *
331331 * @return $this
332332 */
333- public function setConsumerId (string $ consumerId ): self
333+ public function setConsumerId (string $ consumerId ): static
334334 {
335335 $ this ->consumerId = $ consumerId ;
336336 return $ this ;
@@ -353,7 +353,7 @@ public function getConsumerId(): string
353353 *
354354 * @return $this
355355 */
356- public function setChannelType (string $ channelType ): self
356+ public function setChannelType (string $ channelType ): static
357357 {
358358 $ this ->channelType = $ channelType ;
359359 return $ this ;
@@ -376,7 +376,7 @@ public function getChannelType(): string
376376 *
377377 * @return $this
378378 */
379- public function setPartnerId (string $ partnerId ): self
379+ public function setPartnerId (string $ partnerId ): static
380380 {
381381 $ this ->partnerId = $ partnerId ;
382382 return $ this ;
@@ -399,7 +399,7 @@ public function getPartnerId(): string
399399 *
400400 * @return $this
401401 */
402- public function setHost (string $ host ): self
402+ public function setHost (string $ host ): static
403403 {
404404 $ this ->host = $ host ;
405405 return $ this ;
@@ -450,7 +450,7 @@ public function getUserAgent()
450450 *
451451 * @return $this
452452 */
453- public function setDebug (bool $ debug = true ): self
453+ public function setDebug (bool $ debug = true ): static
454454 {
455455 $ this ->debug = $ debug ;
456456 return $ this ;
@@ -473,7 +473,7 @@ public function getDebug(): bool
473473 *
474474 * @return $this
475475 */
476- public function setDebugFile (string $ debugFile ): self
476+ public function setDebugFile (string $ debugFile ): static
477477 {
478478 $ this ->debugFile = $ debugFile ;
479479 return $ this ;
0 commit comments