| 1 | <?php |
||
| 13 | class Scopes extends \Nip\Records\RecordManager implements ScopeRepositoryInterface |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Return information about a scope. |
||
| 18 | * |
||
| 19 | * @param string $identifier The scope identifier |
||
| 20 | * |
||
| 21 | * @return ScopeEntityInterface |
||
| 22 | */ |
||
| 23 | public function getScopeEntityByIdentifier($identifier) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Given a client, grant type and optional user identifier validate the set of scopes requested are valid and optionally |
||
| 30 | * append additional scopes or remove requested scopes. |
||
| 31 | * |
||
| 32 | * @param ScopeEntityInterface[] $scopes |
||
| 33 | * @param string $grantType |
||
| 34 | * @param ClientEntityInterface $clientEntity |
||
| 35 | * @param null|string $userIdentifier |
||
| 36 | * |
||
| 37 | * @return ScopeEntityInterface[] |
||
| 38 | */ |
||
| 39 | public function finalizeScopes( |
||
| 48 | |||
| 49 | /** @noinspection PhpMissingParentCallCommonInspection |
||
| 50 | * @inheritDoc |
||
| 51 | */ |
||
| 52 | protected function generateTable() |
||
| 56 | } |
||
| 57 |