Test Failed
Push — dev ( ccede5...b27119 )
by Herberto
13:46
created

OauthClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Acme\App\Infrastructure\Auth\Authentication\Oauth;
6
7
use League\OAuth2\Server\Entities\ClientEntityInterface;
8
use League\OAuth2\Server\Entities\Traits\ClientTrait;
9
use League\OAuth2\Server\Entities\Traits\EntityTrait;
10
11
final class OauthClient implements ClientEntityInterface
12
{
13
    use ClientTrait;
14
    use EntityTrait;
15
16
    public function __construct(string $identifier, string $name, string $redirectUri)
17
    {
18
        $this->setIdentifier($identifier);
19
        $this->name = $name;
20
        $this->redirectUri = explode(',', $redirectUri);
21
    }
22
}
23