mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Removed unused code
This commit is contained in:
@@ -67,15 +67,6 @@ interface TokenInterface
|
||||
*/
|
||||
public function addScope(ScopeEntityInterface $scope);
|
||||
|
||||
/**
|
||||
* Get an associated scope by the scope's identifier.
|
||||
*
|
||||
* @param string $identifier
|
||||
*
|
||||
* @return ScopeEntityInterface|null The scope or null if not found
|
||||
*/
|
||||
public function getScopeWithIdentifier($identifier);
|
||||
|
||||
/**
|
||||
* Return an array of scopes associated with the token.
|
||||
*
|
||||
|
@@ -38,18 +38,6 @@ trait TokenEntityTrait
|
||||
$this->scopes[$scope->getIdentifier()] = $scope;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an associated scope by the scope's identifier.
|
||||
*
|
||||
* @param string $identifier
|
||||
*
|
||||
* @return ScopeEntityInterface|null The scope or null if not found
|
||||
*/
|
||||
public function getScopeWithIdentifier($identifier)
|
||||
{
|
||||
return (isset($this->scopes[$identifier])) ? $this->scopes[$identifier] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an array of scopes associated with the token.
|
||||
*
|
||||
|
Reference in New Issue
Block a user