Passed
Push — master ( de5894...b396dd )
by Conrad
07:34
created

ClientEntity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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