<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ConnectionTimetableSubscriptionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Subscription Request for Connection Protection.
 * @subpackage Structs
 */
class ConnectionTimetableSubscriptionStructure extends AbstractSubscriptionStructure
{
    /**
     * The ConnectionTimetableRequest
     * Meta informations extracted from the WSDL
     * - ref: ConnectionTimetableRequest
     * @var \StructType\ConnectionTimetableRequestStructure
     */
    public $ConnectionTimetableRequest;
    /**
     * The Extensions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: Extensions
     * @var \StructType\ExtensionsStructure
     */
    public $Extensions;
    /**
     * Constructor method for ConnectionTimetableSubscriptionStructure
     * @uses ConnectionTimetableSubscriptionStructure::setConnectionTimetableRequest()
     * @uses ConnectionTimetableSubscriptionStructure::setExtensions()
     * @param \StructType\ConnectionTimetableRequestStructure $connectionTimetableRequest
     * @param \StructType\ExtensionsStructure $extensions
     */
    public function __construct(\StructType\ConnectionTimetableRequestStructure $connectionTimetableRequest = null, \StructType\ExtensionsStructure $extensions = null)
    {
        $this
            ->setConnectionTimetableRequest($connectionTimetableRequest)
            ->setExtensions($extensions);
    }
    /**
     * Get ConnectionTimetableRequest value
     * @return \StructType\ConnectionTimetableRequestStructure|null
     */
    public function getConnectionTimetableRequest()
    {
        return $this->ConnectionTimetableRequest;
    }
    /**
     * Set ConnectionTimetableRequest value
     * @param \StructType\ConnectionTimetableRequestStructure $connectionTimetableRequest
     * @return \StructType\ConnectionTimetableSubscriptionStructure
     */
    public function setConnectionTimetableRequest(\StructType\ConnectionTimetableRequestStructure $connectionTimetableRequest = null)
    {
        $this->ConnectionTimetableRequest = $connectionTimetableRequest;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\ConnectionTimetableSubscriptionStructure
     */
    public function setExtensions(\StructType\ExtensionsStructure $extensions = null)
    {
        $this->Extensions = $extensions;
        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\ConnectionTimetableSubscriptionStructure
     */
    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__;
    }
}
