for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HMLB\UserBundle\Event;
use HMLB\DDD\Entity\Identity;
/**
* PasswordResetRequested
*
* @author Hugues Maignol <[email protected]>
*/
final class PasswordResetRequested extends UserEvent
{
* @var Identity
private $userId;
* @var string
private $resetToken;
public function __construct(Identity $userId, string $resetToken)
$this->userId = $userId;
$this->resetToken = $resetToken;
}
* Getter de resetToken
* @return string
public function getResetToken()
return $this->resetToken;
* @return Identity
public function getUserId(): Identity
return $this->userId;