merged branch jonathaningram/patch-9 (PR #5055)

Commits
-------

9030dc5 [Security] add docblocks to InteractiveLoginEvent

Discussion
----------

[Security] add docblocks to InteractiveLoginEvent

Close #5053 (was easier to just create a new PR).
This commit is contained in:
Fabien Potencier 2012-07-26 08:12:53 +02:00
commit aed3bd3936

View File

@ -17,21 +17,43 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
class InteractiveLoginEvent extends Event class InteractiveLoginEvent extends Event
{ {
/**
* @var Request
*/
private $request; private $request;
/**
* @var TokenInterface
*/
private $authenticationToken; private $authenticationToken;
/**
* Constructor.
*
* @param Request $request
* @param TokenInterface $authenticationToken
*/
public function __construct(Request $request, TokenInterface $authenticationToken) public function __construct(Request $request, TokenInterface $authenticationToken)
{ {
$this->request = $request; $this->request = $request;
$this->authenticationToken = $authenticationToken; $this->authenticationToken = $authenticationToken;
} }
/**
* Gets the request.
*
* @return Request
*/
public function getRequest() public function getRequest()
{ {
return $this->request; return $this->request;
} }
/**
* Gets the authentication token.
*
* @return TokenInterface
*/
public function getAuthenticationToken() public function getAuthenticationToken()
{ {
return $this->authenticationToken; return $this->authenticationToken;