1 | <?php |
||
19 | final class ScopeRepository implements ScopeRepositoryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private $availableScopes = []; |
||
25 | |||
26 | /** |
||
27 | * ScopeManager constructor. |
||
28 | * |
||
29 | * @param array $availableScopes |
||
30 | */ |
||
31 | public function __construct(array $availableScopes = []) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getSupportedScopes(): array |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getAvailableScopesForClient(Client $client): array |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function areRequestedScopesAvailable(array $requestedScopes, array $availableScopes): bool |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function convertToArray(string $scopes): array |
||
74 | } |
||
75 |