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 fetched but already consumed.
*
* @author Yann Eugoné <[email protected]>
*/
class TokenAlreadyConsumedEvent extends Event
{
* @var string
private $purpose;
private $value;
* @param string $purpose The token purpose
* @param string $value The token value
public function __construct(string $purpose, string $value)
$this->purpose = $purpose;
$this->value = $value;
}
* The token purpose
* @return string
public function getPurpose(): string
return $this->purpose;
* The token value
public function getValue(): string
return $this->value;