Completed
Pull Request — master (#1122)
by Sebastian
05:10 queued 01:22
created

ClaimEntityTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 30
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getValue() 0 3 1
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