Completed
Pull Request — master (#38)
by Brian
15:57 queued 05:55
created

User::setAccessTokenResponseBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace SocialiteProviders\Manager\OAuth1;
4
5
class User extends \Laravel\Socialite\One\User
6
{
7
    /**
8
     * The User Credentials.
9
     *
10
     * e.g. access_token, refresh_token, etc.
11
     *
12
     * @var array
13
     */
14
    public $accessTokenResponseBody;
15
16
    /**
17
     * Set the credentials on the user.
18
     *
19
     * Might include things such as the token and refresh token
20
     *
21
     * @param array $accessTokenResponseBody
22
     *
23
     * @return $this
24
     */
25
    public function setAccessTokenResponseBody(array $accessTokenResponseBody)
26
    {
27
        $this->accessTokenResponseBody = $accessTokenResponseBody;
28
29
        return $this;
30
    }
31
}
32