Passed
Push — master ( c6d84a...2633b8 )
by Dāvis
03:50
created

CustomResourceOwner::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sludio\HelperBundle\Oauth\Client\Provider\Custom;
4
5
use League\OAuth2\Client\Provider\GenericResourceOwner;
6
use League\OAuth2\Client\Tool\ArrayAccessorTrait;
7
8
class CustomResourceOwner extends GenericResourceOwner
9
{
10
    use ArrayAccessorTrait;
11
12
    protected $domain;
13
14
    public function __construct(array $response, $resourceOwnerId)
15
    {
16
        parent::__construct($response, $resourceOwnerId);
17
        $this->response = $response;
18
    }
19
20
    public function setDomain($domain)
21
    {
22
        $this->domain = $domain;
23
24
        return $this;
25
    }
26
}
27