<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ConnectionTimetableDeliveriesStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Deliveries for Connection Timetable Service. Used in WSDl.
 * @subpackage Structs
 */
class ConnectionTimetableDeliveriesStructure extends AbstractStructBase
{
    /**
     * The ConnectionTimetableDelivery
     * Meta informations extracted from the WSDL
     * - ref: ConnectionTimetableDelivery
     * @var \StructType\ConnectionTimetableDeliveryStructure
     */
    public $ConnectionTimetableDelivery;
    /**
     * Constructor method for ConnectionTimetableDeliveriesStructure
     * @uses ConnectionTimetableDeliveriesStructure::setConnectionTimetableDelivery()
     * @param \StructType\ConnectionTimetableDeliveryStructure $connectionTimetableDelivery
     */
    public function __construct(\StructType\ConnectionTimetableDeliveryStructure $connectionTimetableDelivery = null)
    {
        $this
            ->setConnectionTimetableDelivery($connectionTimetableDelivery);
    }
    /**
     * Get ConnectionTimetableDelivery value
     * @return \StructType\ConnectionTimetableDeliveryStructure|null
     */
    public function getConnectionTimetableDelivery()
    {
        return $this->ConnectionTimetableDelivery;
    }
    /**
     * Set ConnectionTimetableDelivery value
     * @param \StructType\ConnectionTimetableDeliveryStructure $connectionTimetableDelivery
     * @return \StructType\ConnectionTimetableDeliveriesStructure
     */
    public function setConnectionTimetableDelivery(\StructType\ConnectionTimetableDeliveryStructure $connectionTimetableDelivery = null)
    {
        $this->ConnectionTimetableDelivery = $connectionTimetableDelivery;
        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 \StructType\ConnectionTimetableDeliveriesStructure
     */
    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__;
    }
}
