@@ -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