CommerceGuys\Addressing\Address::__construct PHP Method

__construct() public method

Creates an Address instance.
public __construct ( string $countryCode = '', string $administrativeArea = '', string $locality = '', string $dependentLocality = '', string $postalCode = '', string $sortingCode = '', string $addressLine1 = '', string $addressLine2 = '', string $organization = '', string $givenName = '', string $additionalName = '', string $familyName = '', string $locale = 'und' )
$countryCode string The two-letter country code.
$administrativeArea string The administrative area.
$locality string The locality.
$dependentLocality string The dependent locality.
$postalCode string The postal code.
$sortingCode string The sorting code
$addressLine1 string The first line of the address block.
$addressLine2 string The second line of the address block.
$organization string The organization.
$givenName string The given name.
$additionalName string The additional name.
$familyName string The family name.
$locale string The locale. Defaults to 'und'.
    public function __construct($countryCode = '', $administrativeArea = '', $locality = '', $dependentLocality = '', $postalCode = '', $sortingCode = '', $addressLine1 = '', $addressLine2 = '', $organization = '', $givenName = '', $additionalName = '', $familyName = '', $locale = 'und')
    {
        $this->countryCode = $countryCode;
        $this->administrativeArea = $administrativeArea;
        $this->locality = $locality;
        $this->dependentLocality = $dependentLocality;
        $this->postalCode = $postalCode;
        $this->sortingCode = $sortingCode;
        $this->addressLine1 = $addressLine1;
        $this->addressLine2 = $addressLine2;
        $this->organization = $organization;
        $this->givenName = $givenName;
        $this->additionalName = $additionalName;
        $this->familyName = $familyName;
        $this->locale = $locale;
    }