| Total Complexity | 7 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class ScopePolicyManager |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Config |
||
| 22 | */ |
||
| 23 | private $config; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ScopePolicyManager constructor. |
||
| 27 | * @param Config $config |
||
| 28 | * @throws \Exception |
||
| 29 | */ |
||
| 30 | public function __construct(Config $config) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ClientInterface $client |
||
| 37 | * @param string|null $scope |
||
| 38 | * @return array|null |
||
| 39 | */ |
||
| 40 | public function getScopes(ClientInterface $client, ?string $scope): array |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param ClientInterface $client |
||
| 47 | * @param array $scopes |
||
| 48 | * @throws OAuthException |
||
| 49 | */ |
||
| 50 | public function verifyScopes(ClientInterface $client, array $scopes): void |
||
| 68 | } |