# give/4.16.9/src/FormMigration/Steps/DonationGoal.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 19 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/FormMigration/Steps/DonationGoal.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/FormMigration/Steps/DonationGoal.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/FormMigration/Steps/DonationGoal.php#L10-L20`.

```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).
    }
}

```
