Passed
Pull Request — master (#1316)
by
unknown
31:03
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
    /**
22
     * Get scope
23
     *
24
     * @return string
25
     */
26
    public function getScope(): string
27
    {
28
        return $this->scope;
29
    }
30
31
    /**
32
     * Get claims
33
     *
34
     * @return ClaimSetInterface[]
35
     */
36
    public function getClaims(): array
37
    {
38
        return $this->claims;
39
    }
40
}
41