for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yokai\SecurityTokenBundle\Event;
use Symfony\Component\EventDispatcher\Event;
/**
* Event being dispatched when a Token is fetch but expired.
*
* @author Yann Eugoné <[email protected]>
*/
class TokenExpiredEvent extends Event
{
* @var string
private $purpose;
private $value;
* @param string $purpose The token purpose
* @param string $value The token value
public function __construct($purpose, $value)
$this->purpose = $purpose;
$this->value = $value;
}
* The token purpose
* @return string
public function getPurpose()
return $this->purpose;
* The token value
public function getValue()
return $this->value;