Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | final class ScopeRepository implements ScopeRepositoryInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var ScopeInterface[] |
||
24 | */ |
||
25 | private $scopes = []; |
||
26 | |||
27 | public function __construct() |
||
28 | { |
||
29 | $this->scopes['openid'] = new Scope('openid'); |
||
30 | $this->scopes['scope1'] = new Scope('scope1'); |
||
31 | } |
||
32 | |||
33 | public function has(string $scope): bool |
||
36 | } |
||
37 | |||
38 | public function get(string $scope): ScopeInterface |
||
45 | } |
||
46 | |||
47 | public function all(): array |
||
52 |