vendor/symfony/security-core/Authentication/Token/Storage/TokenStorageInterface.php line 35

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Security\Core\Authentication\Token\Storage;
  11. use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  12. /**
  13.  * The TokenStorageInterface.
  14.  *
  15.  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  16.  */
  17. interface TokenStorageInterface
  18. {
  19.     /**
  20.      * Returns the current security token.
  21.      *
  22.      * @return TokenInterface|null
  23.      */
  24.     public function getToken();
  25.     /**
  26.      * Sets the authentication token.
  27.      *
  28.      * @param TokenInterface|null $token A TokenInterface token, or null if no further authentication information should be stored
  29.      */
  30.     public function setToken(TokenInterface $token null);
  31. }