| Total Complexity | 7 |
| Total Lines | 40 |
| 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 | * @return array|null |
||
| 38 | * @throws OAuthException |
||
| 39 | */ |
||
| 40 | public function getDefaultScopes(ClientInterface $client): ?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 |
||
| 62 | } |