Completed
Push — master ( 704578...e88511 )
by Alex
32:19
created

ClientEntity::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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