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;
class PasswordChanged extends UserEvent
{
/**
* @var Identity
*/
protected $userId;
* @var string
protected $oldPassword;
protected $newPassword;
public function __construct(Identity $userId, string $oldPassword, string $newPassword)
$this->userId = $userId;
$this->oldPassword = $oldPassword;
$this->newPassword = $newPassword;
}
* @return string
public function getOldPassword(): string
return $this->oldPassword;
public function getNewPassword(): string
return $this->newPassword;
* @return Identity
public function getUserId(): Identity
return $this->userId;