for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\Command;
use HMLB\DDD\Entity\Identity;
/**
* Reset a password after forgetting it.
*
* @author Hugues Maignol <[email protected]>
*/
final class ResetPassword
{
* @var string
private $password;
private $resetToken;
* @var Identity
private $userId;
public function __construct(string $password, string $resetToken, Identity $userId)
$this->password = $password;
$this->resetToken = $resetToken;
$this->userId = $userId;
}
* @return string
public function getPassword(): string
return $this->password;
* Getter de resetToken
public function getResetToken()
return $this->resetToken;
* @return Identity
public function getUserId(): Identity
return $this->userId;