<?php

namespace Sabre\CreatePassengerNameRecord\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TravelItineraryAddInfo Structs
 * @subpackage Structs
 */
class TravelItineraryAddInfo extends AbstractStructBase
{
    /**
     * The AgencyInfo
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\AgencyInfo
     */
    public $AgencyInfo;
    /**
     * The CustomerInfo
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\CustomerInfo
     */
    public $CustomerInfo;
    /**
     * Constructor method for TravelItineraryAddInfo
     * @uses TravelItineraryAddInfo::setAgencyInfo()
     * @uses TravelItineraryAddInfo::setCustomerInfo()
     * @param \Sabre\CreatePassengerNameRecord\Structs\AgencyInfo $agencyInfo
     * @param \Sabre\CreatePassengerNameRecord\Structs\CustomerInfo $customerInfo
     */
    public function __construct(\Sabre\CreatePassengerNameRecord\Structs\AgencyInfo $agencyInfo = null, \Sabre\CreatePassengerNameRecord\Structs\CustomerInfo $customerInfo = null)
    {
        $this
            ->setAgencyInfo($agencyInfo)
            ->setCustomerInfo($customerInfo);
    }
    /**
     * Get AgencyInfo value
     * @return \Sabre\CreatePassengerNameRecord\Structs\AgencyInfo|null
     */
    public function getAgencyInfo()
    {
        return $this->AgencyInfo;
    }
    /**
     * Set AgencyInfo value
     * @param \Sabre\CreatePassengerNameRecord\Structs\AgencyInfo $agencyInfo
     * @return \Sabre\CreatePassengerNameRecord\Structs\TravelItineraryAddInfo
     */
    public function setAgencyInfo(\Sabre\CreatePassengerNameRecord\Structs\AgencyInfo $agencyInfo = null)
    {
        $this->AgencyInfo = $agencyInfo;
        return $this;
    }
    /**
     * Get CustomerInfo value
     * @return \Sabre\CreatePassengerNameRecord\Structs\CustomerInfo|null
     */
    public function getCustomerInfo()
    {
        return $this->CustomerInfo;
    }
    /**
     * Set CustomerInfo value
     * @param \Sabre\CreatePassengerNameRecord\Structs\CustomerInfo $customerInfo
     * @return \Sabre\CreatePassengerNameRecord\Structs\TravelItineraryAddInfo
     */
    public function setCustomerInfo(\Sabre\CreatePassengerNameRecord\Structs\CustomerInfo $customerInfo = null)
    {
        $this->CustomerInfo = $customerInfo;
        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\CreatePassengerNameRecord\Structs\TravelItineraryAddInfo
     */
    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__;
    }
}
