ClientEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace AdvancedLearning\Oauth2Server\Entities;
4
5
use League\OAuth2\Server\Entities\ClientEntityInterface;
6
use League\OAuth2\Server\Entities\Traits\ClientTrait;
7
use League\OAuth2\Server\Entities\Traits\EntityTrait;
8
9
class ClientEntity implements ClientEntityInterface
10
{
11
    use ClientTrait, EntityTrait;
12
13
    /**
14
     * Create a new client instance.
15
     *
16
     * @param string $identifier  The identifier for the client.
17
     * @param string $name        The name of the client.
18
     * @param string $redirectUri Redirect Uri.
19
     */
20
    public function __construct(string $identifier, string $name, string $redirectUri)
21
    {
22
        $this->setIdentifier($identifier);
23
        $this->name = $name;
24
        $this->redirectUri = explode(',', $redirectUri);
25
    }
26
}
27