vendor/league/oauth2-server-bundle/src/Security/Passport/Badge/ScopeBadge.php line 9

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace League\Bundle\OAuth2ServerBundle\Security\Passport\Badge;
  4. use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
  5. class ScopeBadge implements BadgeInterface
  6. {
  7.     /**
  8.      * @var bool
  9.      */
  10.     private $resolved false;
  11.     /**
  12.      * @var list<string>
  13.      */
  14.     private $scopes;
  15.     /**
  16.      * @param list<string> $scopes
  17.      */
  18.     public function __construct(array $scopes)
  19.     {
  20.         $this->scopes $scopes;
  21.     }
  22.     /**
  23.      * @return list<string>
  24.      */
  25.     public function getScopes(): array
  26.     {
  27.         return $this->scopes;
  28.     }
  29.     public function isResolved(): bool
  30.     {
  31.         return $this->resolved;
  32.     }
  33.     public function markResolved(): void
  34.     {
  35.         $this->resolved true;
  36.     }
  37. }