Completed
Push — master ( 661e1f...1f20a4 )
by Andrew
18s queued 10s
created

ClientEntity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

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