Passed
Pull Request — master (#1316)
by
unknown
32:56
created

ClaimSetEntry   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 30
rs 10
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
declare(strict_types=1);
4
5
namespace League\OAuth2\Server\Entities;
6
7
/**
8
 * ClaimSetEntry
9
 *
10
 * @author Steve Rhoades <[email protected]>
11
 * @author Marc Riemer <[email protected]>
12
 * @license http://opensource.org/licenses/MIT MIT
13
 */
14
class ClaimSetEntry implements ClaimSetEntryInterface
15
{
16
    /**
17
     * Summary of __construct
18
     *
19
     * @param string   $scope  Scope of the claimset
20
     * @param string[] $claims The claims
21
     */
22
    public function __construct(
23
        protected string $scope,
24
        protected array $claims
25
    ) {
26
    }
27
28
    /**
29
     * Get scope
30
     */
31
    public function getScope(): string
32
    {
33
        return $this->scope;
34
    }
35
36
    /**
37
     * Get claims
38
     *
39
     * @return array<string, string>
40
     */
41
    public function getClaims(): array
42
    {
43
        return $this->claims;
44
    }
45
}
46