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

ClaimSetEntry::getScope()   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
    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