<?php

namespace Sabre\CreatePassengerNameRecord\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CollectionDeliveryInfo Structs
 * @subpackage Structs
 */
class CollectionDeliveryInfo extends AbstractStructBase
{
    /**
     * The CollectionInfo
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\CollectionInfo
     */
    public $CollectionInfo;
    /**
     * The DeliveryInfo
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo
     */
    public $DeliveryInfo;
    /**
     * Constructor method for CollectionDeliveryInfo
     * @uses CollectionDeliveryInfo::setCollectionInfo()
     * @uses CollectionDeliveryInfo::setDeliveryInfo()
     * @param \Sabre\CreatePassengerNameRecord\Structs\CollectionInfo $collectionInfo
     * @param \Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo $deliveryInfo
     */
    public function __construct(\Sabre\CreatePassengerNameRecord\Structs\CollectionInfo $collectionInfo = null, \Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo $deliveryInfo = null)
    {
        $this
            ->setCollectionInfo($collectionInfo)
            ->setDeliveryInfo($deliveryInfo);
    }
    /**
     * Get CollectionInfo value
     * @return \Sabre\CreatePassengerNameRecord\Structs\CollectionInfo|null
     */
    public function getCollectionInfo()
    {
        return $this->CollectionInfo;
    }
    /**
     * Set CollectionInfo value
     * @param \Sabre\CreatePassengerNameRecord\Structs\CollectionInfo $collectionInfo
     * @return \Sabre\CreatePassengerNameRecord\Structs\CollectionDeliveryInfo
     */
    public function setCollectionInfo(\Sabre\CreatePassengerNameRecord\Structs\CollectionInfo $collectionInfo = null)
    {
        $this->CollectionInfo = $collectionInfo;
        return $this;
    }
    /**
     * Get DeliveryInfo value
     * @return \Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo|null
     */
    public function getDeliveryInfo()
    {
        return $this->DeliveryInfo;
    }
    /**
     * Set DeliveryInfo value
     * @param \Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo $deliveryInfo
     * @return \Sabre\CreatePassengerNameRecord\Structs\CollectionDeliveryInfo
     */
    public function setDeliveryInfo(\Sabre\CreatePassengerNameRecord\Structs\DeliveryInfo $deliveryInfo = null)
    {
        $this->DeliveryInfo = $deliveryInfo;
        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\CollectionDeliveryInfo
     */
    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__;
    }
}
