Completed
Push — master ( cead3a...eb9968 )
by Andy
02:38
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 27
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setAccessTokenResponseBody() 0 6 1
1
<?php
2
namespace SocialiteProviders\Manager\OAuth2;
3
4
class User extends \Laravel\Socialite\Two\User
5
{
6
    /**
7
     * The User Credentials
8
     *
9
     * e.g. access_token, refresh_token, etc.
10
     *
11
     * @var array
12
     */
13
    public $accessTokenResponseBody;
14
15
    /**
16
     * Set the credentials on the user.
17
     *
18
     * Might include things such as the token and refresh token
19
     *
20
     * @param array $accessTokenResponseBody
21
     *
22
     * @return $this
23
     */
24 3
    public function setAccessTokenResponseBody(array $accessTokenResponseBody)
25
    {
26 3
        $this->accessTokenResponseBody = $accessTokenResponseBody;
27
28 3
        return $this;
29
    }
30
}
31