/** * @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer * * @return \Generated\Shared\Transfer\CustomerTransfer */ protected function encryptNewPassword(CustomerTransfer $customerTransfer) { $currentPassword = $customerTransfer->getNewPassword(); $customerTransfer->setNewPassword($this->getEncodedPassword($currentPassword)); return $customerTransfer; }