/**
  * Get the scopes for an access token
  *
  * @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
  *
  * @return \League\OAuth2\Server\Entity\ScopeEntity[] Array of \League\OAuth2\Server\Entity\ScopeEntity
  */
 public function getScopes(AuthCodeEntity $token)
 {
     $result = $this->storage->getScopes($token);
     return $result;
 }