Skip to content

Commit bbc4238

Browse files
committed
fixing method signatures to match types
1 parent 88d7aa5 commit bbc4238

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/Model/OAuth/OAuth1TokenInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface OAuth1TokenInterface extends OAuthTokenInterface
2727
*
2828
* @return string
2929
*/
30-
public function getToken();
30+
public function getToken(): ?string;
3131

3232
/**
3333
* Set token
@@ -36,14 +36,14 @@ public function getToken();
3636
*
3737
* @return $this
3838
*/
39-
public function setToken($token);
39+
public function setToken(?string $token);
4040

4141
/**
4242
* Get token secret
4343
*
4444
* @return string
4545
*/
46-
public function getTokenSecret();
46+
public function getTokenSecret(): ?string;
4747

4848
/**
4949
* Set token secret
@@ -52,5 +52,5 @@ public function getTokenSecret();
5252
*
5353
* @return $this
5454
*/
55-
public function setTokenSecret($tokenSecret);
55+
public function setTokenSecret(?string $tokenSecret);
5656
}

src/Model/OAuth/OAuth2TokenInterface.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface OAuth2TokenInterface extends OAuthTokenInterface
2727
*
2828
* @return string
2929
*/
30-
public function getAccessToken();
30+
public function getAccessToken(): ?string;
3131

3232
/**
3333
* Set access token
@@ -36,14 +36,14 @@ public function getAccessToken();
3636
*
3737
* @return $this
3838
*/
39-
public function setAccessToken($accessToken);
39+
public function setAccessToken(?string $accessToken);
4040

4141
/**
4242
* Get refresh token
4343
*
4444
* @return string
4545
*/
46-
public function getRefreshToken();
46+
public function getRefreshToken(): ?string;
4747

4848
/**
4949
* Set refresh token
@@ -52,14 +52,14 @@ public function getRefreshToken();
5252
*
5353
* @return $this
5454
*/
55-
public function setRefreshToken($refreshToken);
55+
public function setRefreshToken(?string $refreshToken);
5656

5757
/**
5858
* Get token type
5959
*
6060
* @return string
6161
*/
62-
public function getTokenType();
62+
public function getTokenType(): ?string;
6363

6464
/**
6565
* Set token type
@@ -68,14 +68,14 @@ public function getTokenType();
6868
*
6969
* @return $this
7070
*/
71-
public function setTokenType($tokenType);
71+
public function setTokenType(?string $tokenType);
7272

7373
/**
7474
* Get scope
7575
*
7676
* @return string
7777
*/
78-
public function getScope();
78+
public function getScope(): ?string;
7979

8080
/**
8181
* Set scope
@@ -84,14 +84,14 @@ public function getScope();
8484
*
8585
* @return $this
8686
*/
87-
public function setScope($scope);
87+
public function setScope(?string $scope);
8888

8989
/**
9090
* Get expires at
9191
*
92-
* @return int
92+
* @return string
9393
*/
94-
public function getExpiresAt();
94+
public function getExpiresAt(): ?string;
9595

9696
/**
9797
* Set expires at
@@ -100,5 +100,5 @@ public function getExpiresAt();
100100
*
101101
* @return $this
102102
*/
103-
public function setExpiresAt($expiresAt);
103+
public function setExpiresAt(?string $expiresAt);
104104
}

0 commit comments

Comments
 (0)