<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for EstimatedTimetableCapabilitiesResponseStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Delivery for Estimated Timetable Capability.
 * @subpackage Structs
 */
class EstimatedTimetableCapabilitiesResponseStructure extends AbstractServiceCapabilitiesResponseStructure
{
    /**
     * The EstimatedTimetableServiceCapabilities
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: EstimatedTimetableServiceCapabilities
     * @var \StructType\EstimatedTimetableServiceCapabilitiesStructure
     */
    public $EstimatedTimetableServiceCapabilities;
    /**
     * The EstimatedTimetablePermissions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: EstimatedTimetablePermissions
     * @var \StructType\EstimatedTimetablePermissions
     */
    public $EstimatedTimetablePermissions;
    /**
     * The Extensions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: Extensions
     * @var \StructType\ExtensionsStructure
     */
    public $Extensions;
    /**
     * The version
     * Meta informations extracted from the WSDL
     * - default: 2.0
     * - use: optional
     * - documentation: A string indicating the versioin of a SIRI data structure.
     * @var string
     */
    public $version;
    /**
     * Constructor method for EstimatedTimetableCapabilitiesResponseStructure
     * @uses EstimatedTimetableCapabilitiesResponseStructure::setEstimatedTimetableServiceCapabilities()
     * @uses EstimatedTimetableCapabilitiesResponseStructure::setEstimatedTimetablePermissions()
     * @uses EstimatedTimetableCapabilitiesResponseStructure::setExtensions()
     * @uses EstimatedTimetableCapabilitiesResponseStructure::setVersion()
     * @param \StructType\EstimatedTimetableServiceCapabilitiesStructure $estimatedTimetableServiceCapabilities
     * @param \StructType\EstimatedTimetablePermissions $estimatedTimetablePermissions
     * @param \StructType\ExtensionsStructure $extensions
     * @param string $version
     */
    public function __construct(\StructType\EstimatedTimetableServiceCapabilitiesStructure $estimatedTimetableServiceCapabilities = null, \StructType\EstimatedTimetablePermissions $estimatedTimetablePermissions = null, \StructType\ExtensionsStructure $extensions = null, $version = '2.0')
    {
        $this
            ->setEstimatedTimetableServiceCapabilities($estimatedTimetableServiceCapabilities)
            ->setEstimatedTimetablePermissions($estimatedTimetablePermissions)
            ->setExtensions($extensions)
            ->setVersion($version);
    }
    /**
     * Get EstimatedTimetableServiceCapabilities value
     * @return \StructType\EstimatedTimetableServiceCapabilitiesStructure|null
     */
    public function getEstimatedTimetableServiceCapabilities()
    {
        return $this->EstimatedTimetableServiceCapabilities;
    }
    /**
     * Set EstimatedTimetableServiceCapabilities value
     * @param \StructType\EstimatedTimetableServiceCapabilitiesStructure $estimatedTimetableServiceCapabilities
     * @return \StructType\EstimatedTimetableCapabilitiesResponseStructure
     */
    public function setEstimatedTimetableServiceCapabilities(\StructType\EstimatedTimetableServiceCapabilitiesStructure $estimatedTimetableServiceCapabilities = null)
    {
        $this->EstimatedTimetableServiceCapabilities = $estimatedTimetableServiceCapabilities;
        return $this;
    }
    /**
     * Get EstimatedTimetablePermissions value
     * @return \StructType\EstimatedTimetablePermissions|null
     */
    public function getEstimatedTimetablePermissions()
    {
        return $this->EstimatedTimetablePermissions;
    }
    /**
     * Set EstimatedTimetablePermissions value
     * @param \StructType\EstimatedTimetablePermissions $estimatedTimetablePermissions
     * @return \StructType\EstimatedTimetableCapabilitiesResponseStructure
     */
    public function setEstimatedTimetablePermissions(\StructType\EstimatedTimetablePermissions $estimatedTimetablePermissions = null)
    {
        $this->EstimatedTimetablePermissions = $estimatedTimetablePermissions;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\EstimatedTimetableCapabilitiesResponseStructure
     */
    public function setExtensions(\StructType\ExtensionsStructure $extensions = null)
    {
        $this->Extensions = $extensions;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\EstimatedTimetableCapabilitiesResponseStructure
     */
    public function setVersion($version = '2.0')
    {
        // validation for constraint: string
        if (!is_null($version) && !is_string($version)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($version)), __LINE__);
        }
        $this->version = $version;
        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\EstimatedTimetableCapabilitiesResponseStructure
     */
    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__;
    }
}
