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

ClaimEntityTrait::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * @author      Sebastian Kroczek <[email protected]>
4
 * @copyright   Copyright (c) Sebastian Kroczek
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 ClaimEntityTrait
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
19
    /**
20
     * @var mixed
21
     */
22
    protected $value;
23
24
    /**
25
     * Returns the name of the claim
26
     *
27
     * @return string
28
     */
29 1
    public function getName()
30
    {
31 1
        return $this->name;
32
    }
33
34
    /**
35
     * Returns the claims value
36
     *
37
     * @return mixed
38
     */
39 1
    public function getValue()
40
    {
41 1
        return $this->value;
42
    }
43
}
44