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

ClaimSetEntry::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 4
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
    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