Completed
Push — master ( 046422...8eb4ac )
by ARCANEDEV
08:13 queued 14s
created

User::setRaw()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php namespace Arcanedev\Socialite\OAuth\Two;
2
3
use Arcanedev\Socialite\Base\AbstractUser;
4
5
/**
6
 * Class     User
7
 *
8
 * @package  Arcanedev\Socialite\OAuth\Two
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class User extends AbstractUser
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Getters & Setters
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Set the token on the user.
19
     *
20
     * @param  string  $token
21
     *
22
     * @return self
23
     */
24 12
    public function setToken($token)
25
    {
26 12
        $this->token = $token;
27
28 12
        return $this;
29
    }
30
31
    /**
32
     * Set the raw user array from the provider.
33
     *
34
     * @param  array  $user
35
     *
36
     * @return self
37
     */
38
    public function setRaw(array $user)
39
    {
40
        return parent::setRaw($user);
41
    }
42
}
43