HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/www/wp-content/plugins/give/src/FormMigration/Steps/DonationGoal.php
<?php

namespace Give\FormMigration\Steps;

use Give\FormMigration\Contracts\FormMigrationStep;

class DonationGoal extends FormMigrationStep
{
    public function process()
    {
        $this->formV3->settings->enableDonationGoal = $this->formV2->isDonationGoalEnabled();
        $this->formV3->settings->goalType = $this->formV2->getDonationGoalType();
        $this->formV3->settings->goalAmount = $this->formV2->getDonationGoalAmount();
        $this->formV3->settings->enableAutoClose = $this->formV2->isAutoClosedEnabled();
        $this->formV3->settings->goalAchievedMessage = $this->formV2->getGoalAchievedMessage();
        // @note `_give_goal_color` is not supported in v3 forms (defers to the Form Design).
    }
}