. */ namespace SP\Domain\Crypt\Dtos; use SP\Core\Crypt\Hash; /** * Class UpdateMasterPassRequest */ final class UpdateMasterPassRequest { private string $hash; public function __construct( private readonly string $currentMasterPass, private readonly string $newMasterPass, private readonly string $currentHash ) { $this->hash = Hash::hashKey($newMasterPass); } public function getCurrentMasterPass(): string { return $this->currentMasterPass; } public function getNewMasterPass(): string { return $this->newMasterPass; } public function getHash(): string { return $this->hash; } public function getCurrentHash(): string { return $this->currentHash; } }