ClientEntity   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 3 1
A setRedirectUri() 0 3 1
A setConfidential() 0 3 1
1
<?php
2
3
/**
4
 * @author      Alex Bilbie <[email protected]>
5
 * @copyright   Copyright (c) Alex Bilbie
6
 * @license     http://mit-license.org/
7
 *
8
 * @link        https://github.com/thephpleague/oauth2-server
9
 */
10
11
declare(strict_types=1);
12
13
namespace OAuth2ServerExamples\Entities;
14
15
use League\OAuth2\Server\Entities\ClientEntityInterface;
16
use League\OAuth2\Server\Entities\Traits\ClientTrait;
17
use League\OAuth2\Server\Entities\Traits\EntityTrait;
18
19
class ClientEntity implements ClientEntityInterface
20
{
21
    use EntityTrait;
22
    use ClientTrait;
23
24
    public function setName(string $name): void
25
    {
26
        $this->name = $name;
27
    }
28
29
    public function setRedirectUri(string $uri): void
30
    {
31
        $this->redirectUri = $uri;
32
    }
33
34
    public function setConfidential(): void
35
    {
36
        $this->isConfidential = true;
37
    }
38
}
39