vendor/friendsofsymfony/oauth-server-bundle/Security/Authentication/Token/OAuthToken.php line 23

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of the FOSOAuthServerBundle package.
  5.  *
  6.  * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
  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 FOS\OAuthServerBundle\Security\Authentication\Token;
  12. use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
  13. /**
  14.  * OAuthToken class.
  15.  *
  16.  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
  17.  */
  18. class OAuthToken extends AbstractToken
  19. {
  20.     /**
  21.      * @var string
  22.      */
  23.     protected $token;
  24.     public function setToken($token)
  25.     {
  26.         $this->token $token;
  27.     }
  28.     public function getToken()
  29.     {
  30.         return $this->token;
  31.     }
  32.     public function getCredentials()
  33.     {
  34.         return $this->token;
  35.     }
  36. }