Passed
Pull Request — master (#1316)
by
unknown
31:45
created

ClaimSetEntry::getClaims()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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
    /**
15
     * @var string
16
     */
17
    protected $scope;
18
19
    /**
20
     * @var array
21
     */
22
    protected $claims;
23
24
    public function __construct(
25
        string $scope,
26
        array $claims
27
    ) {
28
        $this->scope = $scope;
29
        $this->claims = $claims;
30
    }
31
32
    /**
33
     * Get scope
34
     *
35
     * @return string
36
     */
37
    public function getScope(): string
38
    {
39
        return $this->scope;
40
    }
41
42
    /**
43
     * Get claims
44
     *
45
     * @return ClaimSetInterface[]
46
     */
47
    public function getClaims(): array
48
    {
49
        return $this->claims;
50
    }
51
}
52