| 1 | <?php |
||
| 11 | class ScopeRepository implements ScopeRepositoryInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Return information about a scope. |
||
| 15 | * |
||
| 16 | * @param string $identifier The scope identifier |
||
| 17 | * |
||
| 18 | * @return \League\OAuth2\Server\Entities\ScopeEntityInterface|null |
||
|
|
|||
| 19 | */ |
||
| 20 | public function getScopeEntityByIdentifier($identifier) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Given a client, grant type and optional user identifier validate the set of scopes requested are valid and optionally |
||
| 29 | * append additional scopes or remove requested scopes. |
||
| 30 | * |
||
| 31 | * @param \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes |
||
| 32 | * @param string $grantType |
||
| 33 | * @param ClientEntityInterface $clientEntity |
||
| 34 | * @param null|string $userIdentifier |
||
| 35 | * |
||
| 36 | * @return \League\OAuth2\Server\Entities\ScopeEntityInterface[] |
||
| 37 | */ |
||
| 38 | public function finalizeScopes(array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null) |
||
| 46 | } |
||
| 47 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.