<?php

namespace Sabre\PassengerDetailsRQ\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResidentDestinationAddress Structs
 * @subpackage Structs
 */
class ResidentDestinationAddress extends AbstractStructBase
{
    /**
     * The Type
     * Meta informations extracted from the WSDL
     * - use: required
     * @var string
     */
    public $Type;
    /**
     * The City
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $City;
    /**
     * The Country
     * @var string
     */
    public $Country;
    /**
     * The Street
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $Street;
    /**
     * The State
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $State;
    /**
     * The Zip
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $Zip;
    /**
     * Constructor method for ResidentDestinationAddress
     * @uses ResidentDestinationAddress::setType()
     * @uses ResidentDestinationAddress::setCity()
     * @uses ResidentDestinationAddress::setCountry()
     * @uses ResidentDestinationAddress::setStreet()
     * @uses ResidentDestinationAddress::setState()
     * @uses ResidentDestinationAddress::setZip()
     * @param string $type
     * @param string $city
     * @param string $country
     * @param string $street
     * @param string $state
     * @param string $zip
     */
    public function __construct($type = null, $city = null, $country = null, $street = null, $state = null, $zip = null)
    {
        $this
            ->setType($type)
            ->setCity($city)
            ->setCountry($country)
            ->setStreet($street)
            ->setState($state)
            ->setZip($zip);
    }
    /**
     * Get Type value
     * @return string
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @param string $type
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setType($type = null)
    {
        $this->Type = $type;
        return $this;
    }
    /**
     * Get City value
     * @return string|null
     */
    public function getCity()
    {
        return $this->City;
    }
    /**
     * Set City value
     * @param string $city
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setCity($city = null)
    {
        $this->City = $city;
        return $this;
    }
    /**
     * Get Country value
     * @return string|null
     */
    public function getCountry()
    {
        return $this->Country;
    }
    /**
     * Set Country value
     * @param string $country
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setCountry($country = null)
    {
        $this->Country = $country;
        return $this;
    }
    /**
     * Get Street value
     * @return string|null
     */
    public function getStreet()
    {
        return $this->Street;
    }
    /**
     * Set Street value
     * @param string $street
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setStreet($street = null)
    {
        $this->Street = $street;
        return $this;
    }
    /**
     * Get State value
     * @return string|null
     */
    public function getState()
    {
        return $this->State;
    }
    /**
     * Set State value
     * @param string $state
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setState($state = null)
    {
        $this->State = $state;
        return $this;
    }
    /**
     * Get Zip value
     * @return string|null
     */
    public function getZip()
    {
        return $this->Zip;
    }
    /**
     * Set Zip value
     * @param string $zip
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public function setZip($zip = null)
    {
        $this->Zip = $zip;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\PassengerDetailsRQ\Structs\ResidentDestinationAddress
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
