xref: /plugin/oauth/vendor/lusitanian/oauth/src/OAuth/OAuth1/Token/StdOAuth1Token.php (revision 98a3611675f696f14f2d12205fb81f7db0cf7b25)
1*98a36116SAndreas Gohr<?php
2*98a36116SAndreas Gohr
3*98a36116SAndreas Gohrnamespace OAuth\OAuth1\Token;
4*98a36116SAndreas Gohr
5*98a36116SAndreas Gohruse OAuth\Common\Token\AbstractToken;
6*98a36116SAndreas Gohr
7*98a36116SAndreas Gohr/**
8*98a36116SAndreas Gohr * Standard OAuth1 token implementation.
9*98a36116SAndreas Gohr * Implements OAuth\OAuth1\Token\TokenInterface in case of any OAuth1 specific features.
10*98a36116SAndreas Gohr */
11*98a36116SAndreas Gohrclass StdOAuth1Token extends AbstractToken implements TokenInterface
12*98a36116SAndreas Gohr{
13*98a36116SAndreas Gohr    /**
14*98a36116SAndreas Gohr     * @var string
15*98a36116SAndreas Gohr     */
16*98a36116SAndreas Gohr    protected $requestToken;
17*98a36116SAndreas Gohr
18*98a36116SAndreas Gohr    /**
19*98a36116SAndreas Gohr     * @var string
20*98a36116SAndreas Gohr     */
21*98a36116SAndreas Gohr    protected $requestTokenSecret;
22*98a36116SAndreas Gohr
23*98a36116SAndreas Gohr    /**
24*98a36116SAndreas Gohr     * @var string
25*98a36116SAndreas Gohr     */
26*98a36116SAndreas Gohr    protected $accessTokenSecret;
27*98a36116SAndreas Gohr
28*98a36116SAndreas Gohr    /**
29*98a36116SAndreas Gohr     * @param string $requestToken
30*98a36116SAndreas Gohr     */
31*98a36116SAndreas Gohr    public function setRequestToken($requestToken)
32*98a36116SAndreas Gohr    {
33*98a36116SAndreas Gohr        $this->requestToken = $requestToken;
34*98a36116SAndreas Gohr    }
35*98a36116SAndreas Gohr
36*98a36116SAndreas Gohr    /**
37*98a36116SAndreas Gohr     * @return string
38*98a36116SAndreas Gohr     */
39*98a36116SAndreas Gohr    public function getRequestToken()
40*98a36116SAndreas Gohr    {
41*98a36116SAndreas Gohr        return $this->requestToken;
42*98a36116SAndreas Gohr    }
43*98a36116SAndreas Gohr
44*98a36116SAndreas Gohr    /**
45*98a36116SAndreas Gohr     * @param string $requestTokenSecret
46*98a36116SAndreas Gohr     */
47*98a36116SAndreas Gohr    public function setRequestTokenSecret($requestTokenSecret)
48*98a36116SAndreas Gohr    {
49*98a36116SAndreas Gohr        $this->requestTokenSecret = $requestTokenSecret;
50*98a36116SAndreas Gohr    }
51*98a36116SAndreas Gohr
52*98a36116SAndreas Gohr    /**
53*98a36116SAndreas Gohr     * @return string
54*98a36116SAndreas Gohr     */
55*98a36116SAndreas Gohr    public function getRequestTokenSecret()
56*98a36116SAndreas Gohr    {
57*98a36116SAndreas Gohr        return $this->requestTokenSecret;
58*98a36116SAndreas Gohr    }
59*98a36116SAndreas Gohr
60*98a36116SAndreas Gohr    /**
61*98a36116SAndreas Gohr     * @param string $accessTokenSecret
62*98a36116SAndreas Gohr     */
63*98a36116SAndreas Gohr    public function setAccessTokenSecret($accessTokenSecret)
64*98a36116SAndreas Gohr    {
65*98a36116SAndreas Gohr        $this->accessTokenSecret = $accessTokenSecret;
66*98a36116SAndreas Gohr    }
67*98a36116SAndreas Gohr
68*98a36116SAndreas Gohr    /**
69*98a36116SAndreas Gohr     * @return string
70*98a36116SAndreas Gohr     */
71*98a36116SAndreas Gohr    public function getAccessTokenSecret()
72*98a36116SAndreas Gohr    {
73*98a36116SAndreas Gohr        return $this->accessTokenSecret;
74*98a36116SAndreas Gohr    }
75*98a36116SAndreas Gohr}
76