mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-01 01:40:21 +05:30
Docblock fixes
This commit is contained in:
parent
293bc52972
commit
d23dc4d247
@ -108,7 +108,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Inject the authorization server into the grant
|
* Inject the authorization server into the grant
|
||||||
* @param AuthorizationServer $server The authorization server instance
|
* @param \League\OAuth2\Server\AuthorizationServer $server The authorization server instance
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setAuthorizationServer(AuthorizationServer $server)
|
public function setAuthorizationServer(AuthorizationServer $server)
|
||||||
@ -119,11 +119,11 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a list of scopes, validate them and return an arrary of Scope entities
|
* Given a list of scopes, validate them and return an array of Scope entities
|
||||||
* @param string $scopeParam A string of scopes (e.g. "profile email birthday")
|
* @param string $scopeParam A string of scopes (e.g. "profile email birthday")
|
||||||
* @param ClientEntity $client A string of scopes (e.g. "profile email birthday")
|
* @param \League\OAuth2\Server\Entity\ClientEntity $client A string of scopes (e.g. "profile email birthday")
|
||||||
* @return array
|
* @return \League\OAuth2\Server\Entity\ScopeEntity[]
|
||||||
* @throws ClientException If scope is invalid, or no scopes passed when required
|
* @throws \League\OAuth2\Server\Exception\ClientException If scope is invalid, or no scopes passed when required
|
||||||
*/
|
*/
|
||||||
public function validateScopes($scopeParam = '', ClientEntity $client)
|
public function validateScopes($scopeParam = '', ClientEntity $client)
|
||||||
{
|
{
|
||||||
@ -171,7 +171,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Format the local scopes array
|
* Format the local scopes array
|
||||||
* @param array $unformated Array of Array of \League\OAuth2\Server\Entity\ScopeEntity
|
* @param \League\OAuth2\Server\Entity\ScopeEntity[]
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function formatScopes($unformated = [])
|
protected function formatScopes($unformated = [])
|
||||||
|
@ -159,7 +159,7 @@ class AuthCodeGrant extends AbstractGrant
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete the auth code grant
|
* Complete the auth code grant
|
||||||
* @return array
|
* @return \League\OAuth2\Server\TokenType\TokenTypeInterface
|
||||||
*/
|
*/
|
||||||
public function completeFlow()
|
public function completeFlow()
|
||||||
{
|
{
|
||||||
|
@ -49,8 +49,7 @@ class ClientCredentialsGrant extends AbstractGrant
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete the client credentials grant
|
* Complete the client credentials grant
|
||||||
* @param null|array $inputParams
|
* @return \League\OAuth2\Server\TokenType\TokenTypeInterface
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function completeFlow()
|
public function completeFlow()
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ interface GrantTypeInterface
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Complete the grant flow
|
* Complete the grant flow
|
||||||
* @return array
|
* @return \League\OAuth2\Server\TokenType\TokenTypeInterface
|
||||||
*/
|
*/
|
||||||
public function completeFlow();
|
public function completeFlow();
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ class PasswordGrant extends AbstractGrant
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete the password grant
|
* Complete the password grant
|
||||||
* @return array
|
* @return \League\OAuth2\Server\TokenType\TokenTypeInterface
|
||||||
*/
|
*/
|
||||||
public function completeFlow()
|
public function completeFlow()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user