Файл: symfony-2.7/src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorage.php
Строк: 63
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SymfonyComponentSecurityCoreAuthenticationTokenStorage;
use SymfonyComponentSecurityCoreAuthenticationTokenTokenInterface;
/**
* TokenStorage contains a TokenInterface
*
* It gives access to the token representing the current user authentication.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
class TokenStorage implements TokenStorageInterface
{
private $token;
/**
* {@inheritdoc}
*/
public function getToken()
{
return $this->token;
}
/**
* {@inheritdoc}
*/
public function setToken(TokenInterface $token = null)
{
$this->token = $token;
}
}