diff options
Diffstat (limited to 'vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php')
-rw-r--r-- | vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php b/vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php new file mode 100644 index 00000000..a12a7971 --- /dev/null +++ b/vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php @@ -0,0 +1,75 @@ +<?php + +namespace OAuth\OAuth1\Token; + +use OAuth\Common\Token\AbstractToken; + +/** + * Standard OAuth1 token implementation. + * Implements OAuth\OAuth1\Token\TokenInterface in case of any OAuth1 specific features. + */ +class StdOAuth1Token extends AbstractToken implements TokenInterface +{ + /** + * @var string + */ + protected $requestToken; + + /** + * @var string + */ + protected $requestTokenSecret; + + /** + * @var string + */ + protected $accessTokenSecret; + + /** + * @param string $requestToken + */ + public function setRequestToken($requestToken) + { + $this->requestToken = $requestToken; + } + + /** + * @return string + */ + public function getRequestToken() + { + return $this->requestToken; + } + + /** + * @param string $requestTokenSecret + */ + public function setRequestTokenSecret($requestTokenSecret) + { + $this->requestTokenSecret = $requestTokenSecret; + } + + /** + * @return string + */ + public function getRequestTokenSecret() + { + return $this->requestTokenSecret; + } + + /** + * @param string $accessTokenSecret + */ + public function setAccessTokenSecret($accessTokenSecret) + { + $this->accessTokenSecret = $accessTokenSecret; + } + + /** + * @return string + */ + public function getAccessTokenSecret() + { + return $this->accessTokenSecret; + } +} |