ClaimSetEntity   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
eloc 7
c 1
b 0
f 1
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getClaims() 0 3 1
A getScope() 0 3 1
1
<?php
2
/**
3
 * @author Steve Rhoades <[email protected]>
4
 * @license http://opensource.org/licenses/MIT MIT
5
 */
6
namespace OpenIDConnectServer\Entities;
7
8
class ClaimSetEntity implements ClaimSetEntityInterface
9
{
10
    protected $scope;
11
12
    protected $claims;
13
14 10
    public function __construct($scope, array $claims)
15
    {
16 10
        $this->scope    = $scope;
17 10
        $this->claims   = $claims;
18 10
    }
19
20 10
    public function getScope()
21
    {
22 10
        return $this->scope;
23
    }
24
25 3
    public function getClaims()
26
    {
27 3
        return $this->claims;
28
    }
29
}
30