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

CustomResourceOwner   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 17
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setDomain() 0 5 1
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