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

AuthenticationToken   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
c 0
b 0
f 0
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getToken() 0 4 1
A getSecret() 0 4 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