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

OauthClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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