vendor/hwi/oauth-bundle/src/Security/Http/Authenticator/Passport/Badge/OAuthTokenBadge.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the HWIOAuthBundle package.
  5.  *
  6.  * (c) Hardware Info <opensource@hardware.info>
  7.  *
  8.  * For the full copyright and license information, please view the LICENSE
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace HWI\Bundle\OAuthBundle\Security\Http\Authenticator\Passport\Badge;
  12. use HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken;
  13. use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
  14. final class OAuthTokenBadge implements BadgeInterface
  15. {
  16.     private OAuthToken $token;
  17.     public function __construct(OAuthToken $token)
  18.     {
  19.         $this->token $token;
  20.     }
  21.     public function isResolved(): bool
  22.     {
  23.         return true;
  24.     }
  25.     public function getToken(): OAuthToken
  26.     {
  27.         return $this->token;
  28.     }
  29. }