User   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 45
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setToken() 0 7 1
A setRaw() 0 4 1
1
<?php namespace Arcanedev\Socialite\OAuth\One;
2
3
use Arcanedev\Socialite\OAuth\AbstractUser;
4
5
/**
6
 * Class     User
7
 *
8
 * @package  Arcanedev\Socialite\OAuth\One
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class User extends AbstractUser
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * The user's access token secret.
19
     *
20
     * @var string
21
     */
22
    public $tokenSecret;
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Getters & Setters
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * Set the token on the user.
30
     *
31
     * @param  string  $token
32
     * @param  string  $tokenSecret
33
     *
34
     * @return self
35
     */
36 6
    public function setToken($token, $tokenSecret)
37
    {
38 6
        $this->token       = $token;
39 6
        $this->tokenSecret = $tokenSecret;
40
41 6
        return $this;
42
    }
43
44
    /**
45
     * Set the raw user array from the provider.
46
     *
47
     * @param  array  $user
48
     *
49
     * @return self
50
     */
51 6
    public function setRaw(array $user)
52
    {
53 6
        return parent::setRaw($user);
54
    }
55
}
56