$23 GRAYBYTE WORDPRESS FILE MANAGER $49

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

/home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/ValueObjects/

HOME
Current File : /home/bravetechrwanda/itiministry.org/wp-content/plugins/give/src/ValueObjects//Address.php
<?php

namespace Give\ValueObjects;

use Give\Framework\Exceptions\Primitives\InvalidArgumentException;

/**
 * Class Address.
 */
class Address implements ValueObjects
{

    /**
     * @var string
     */
    public $line1;

    /**
     * @var string
     */
    public $line2;

    /**
     * @var string
     */
    public $city;

    /**
     * @var string
     */
    public $state;

    /**
     * @var string
     */
    public $postalCode;

    /**
     * @var string
     */
    public $country;

    /**
     * Take array and return object.
     *
     * @since 2.7.0
     *
     * @param array $array
     *
     * @return Address
     */
    public static function fromArray($array)
    {
        $expectedKeys = ['line1', 'line2', 'city', 'state', 'postalCode', 'country'];

        $array = array_intersect_key($array, array_flip($expectedKeys));

        if (empty($array)) {
            throw new InvalidArgumentException(
                'Invalid Address object, must have the exact following keys: ' . implode(', ', $expectedKeys)
            );
        }

        $address = new self();
        foreach ($array as $key => $value) {
            $address->$key = $value;
        }

        return $address;
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravetechrwanda / bravetechrwanda
0755
comment-editor
--
6 May 2026 8.34 AM
bravetechrwanda / bravetechrwanda
0755
Address.php
1.205 KB
24 Nov 2021 4.55 AM
bravetechrwanda / bravetechrwanda
0644
CardInfo.php
1.601 KB
24 Nov 2021 4.55 AM
bravetechrwanda / bravetechrwanda
0644
DonorInfo.php
1.77 KB
1 Apr 2022 2.56 AM
bravetechrwanda / bravetechrwanda
0644
Money.php
3.217 KB
1 Nov 2022 1.53 AM
bravetechrwanda / bravetechrwanda
0644
ValueObjects.php
0.221 KB
24 Nov 2021 4.55 AM
bravetechrwanda / bravetechrwanda
0644

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