Passed
Pull Request — master (#1122)
by Sebastian
02:02
created

ClientTrait::isConfidential()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
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 League\OAuth2\Server\Entities\Traits;
11
12
trait ClientTrait
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
19
    /**
20
     * @var string|string[]
21
     */
22
    protected $redirectUri;
23
24
    /**
25
     * @var bool
26
     */
27
    protected $isConfidential = false;
28
29
    /**
30
     * Get the client's name.
31
     *
32
     * @return string
33
     * @codeCoverageIgnore
34
     */
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    /**
41
     * Returns the registered redirect URI (as a string).
42
     *
43
     * Alternatively return an indexed array of redirect URIs.
44
     *
45
     * @return string|string[]
46
     */
47
    public function getRedirectUri()
48
    {
49
        return $this->redirectUri;
50
    }
51
52
    /**
53
     * Returns true if the client is confidential.
54
     *
55
     * @return bool
56
     */
57
    public function isConfidential()
58
    {
59
        return $this->isConfidential;
60
    }
61
}
62