Passed
Pull Request — master (#1316)
by
unknown
34:21
created

ClaimSetEntry   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getScope() 0 3 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
    /**
21
     * Get scope
22
     *
23
     * @return string
24
     */
25
    public function getScope(): string
26
    {
27
        return $this->scope;
28
    }
29
30
    /**
31
     * Get claims
32
     *
33
     * @return ClaimSetInterface[]
34
     */
35
    public function getClaims(): array
36
    {
37
        return $this->claims;
38
    }
39
}
40