Passed
Pull Request — master (#1316)
by
unknown
33:27
created

ClaimSetEntry   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 25
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getScope() 0 3 1
A __construct() 0 4 1
A getClaims() 0 3 1
1
<?php
2
3
namespace League\OAuth2\Server\Entities;
4
5
/**
6
 * ClaimSetEntry
7
 * 
8
 * @author Steve Rhoades <[email protected]>
9
 * @author Marc Riemer <[email protected]>
10
 * @license http://opensource.org/licenses/MIT MIT
11
 */
12
class ClaimSetEntry implements ClaimSetEntryInterface
13
{
14
    public function __construct(
15
        protected string $scope, 
16
        protected array $claims)
17
    {}
18
19
    /**
20
     * Get scope
21
     *
22
     * @return string
23
     */
24
    public function getScope(): string
25
    {
26
        return $this->scope;
27
    }
28
29
    /**
30
     * Get claims
31
     *
32
     * @return ClaimSetInterface[]
33
     */
34
    public function getClaims(): array
35
    {
36
        return $this->claims;
37
    }
38
}
39