original_string: private function getAccessToken(AccessToken $invalid = null)
      {
          if (!isset($this->accessToken) || $this->accessToken->hasExpired() || ($invalid && $this->accessToken === $invalid)) {
              $this->accessToken = $this->acquireAccessToken();
              if (is_callable($this->tokenSave)) {
                  call_user_func($this->tokenSave, $this->accessToken);
              }
          }
  
          return $this->accessToken;
      }
code: private function getAccessToken(AccessToken $invalid = null)
      {
          if (!isset($this->accessToken) || $this->accessToken->hasExpired() || ($invalid && $this->accessToken === $invalid)) {
              $this->accessToken = $this->acquireAccessToken();
              if (is_callable($this->tokenSave)) {
                  call_user_func($this->tokenSave, $this->accessToken);
              }
          }
  
          return $this->accessToken;
      }
code_tokens: private function getAccessToken ( AccessToken $ invalid = null ) { if ( ! isset ( $ this -> accessToken ) || $ this -> accessToken -> hasExpired ( ) || ( $ invalid && $ this -> accessToken === $ invalid ) ) { $ this -> accessToken = $ this -> acquireAccessToken ( ) ; if ( is_callable ( $ this -> tokenSave ) ) { call_user_func ( $ this -> tokenSave , $ this -> accessToken ) ; } } return $ this -> accessToken ; }
docstring: Get the current access token.
  
  @param AccessToken|null $invalid
  A token to consider invalid.
  
  @return \League\OAuth2\Client\Token\AccessToken
  The OAuth2 access token.
docstring_tokens: Get the current access token .