Completed
Push — master ( d83f32...d4821e )
by Rémi
04:29
created

AuthenticationToken::getSecret()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Twitter\API\REST\OAuth;
4
5
class AuthenticationToken
6
{
7
    /** @var string */
8
    private $token;
9
10
    /** @var string */
11
    private $secret;
12
13
    /**
14
     * AuthenticationToken constructor.
15
     *
16
     * @param string $token
17
     * @param string $secret
18
     */
19 12
    public function __construct($token, $secret)
20
    {
21 12
        $this->token = $token;
22 12
        $this->secret = $secret;
23 12
    }
24
25
    /**
26
     * @return string
27
     */
28 9
    public function getToken()
29
    {
30 9
        return $this->token;
31
    }
32
33
    /**
34
     * @return string
35
     */
36 9
    public function getSecret()
37
    {
38 9
        return $this->secret;
39
    }
40
}
41