<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for StopTimetableDeliveriesStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for stop timetable deliveries. Used in WSDL.
 * @subpackage Structs
 */
class StopTimetableDeliveriesStructure extends AbstractStructBase
{
    /**
     * The StopTimetableDelivery
     * Meta informations extracted from the WSDL
     * - ref: StopTimetableDelivery
     * @var \StructType\StopTimetableDeliveryStructure
     */
    public $StopTimetableDelivery;
    /**
     * Constructor method for StopTimetableDeliveriesStructure
     * @uses StopTimetableDeliveriesStructure::setStopTimetableDelivery()
     * @param \StructType\StopTimetableDeliveryStructure $stopTimetableDelivery
     */
    public function __construct(\StructType\StopTimetableDeliveryStructure $stopTimetableDelivery = null)
    {
        $this
            ->setStopTimetableDelivery($stopTimetableDelivery);
    }
    /**
     * Get StopTimetableDelivery value
     * @return \StructType\StopTimetableDeliveryStructure|null
     */
    public function getStopTimetableDelivery()
    {
        return $this->StopTimetableDelivery;
    }
    /**
     * Set StopTimetableDelivery value
     * @param \StructType\StopTimetableDeliveryStructure $stopTimetableDelivery
     * @return \StructType\StopTimetableDeliveriesStructure
     */
    public function setStopTimetableDelivery(\StructType\StopTimetableDeliveryStructure $stopTimetableDelivery = null)
    {
        $this->StopTimetableDelivery = $stopTimetableDelivery;
        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\StopTimetableDeliveriesStructure
     */
    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__;
    }
}
