<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ProductionTimetableCapabilitiesResponseStructure
 * StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Delivery for ProductionTimetable Capability.
 * @subpackage Structs
 */
class ProductionTimetableCapabilitiesResponseStructure extends AbstractServiceCapabilitiesResponseStructure
{
    /**
     * The ProductionTimetableServiceCapabilities
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: ProductionTimetableServiceCapabilities
     * @var \StructType\ProductionTimetableServiceCapabilitiesStructure
     */
    public $ProductionTimetableServiceCapabilities;
    /**
     * The ProductionTimetablePermissions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: ProductionTimetablePermissions
     * @var \StructType\ProductionTimetablePermissions
     */
    public $ProductionTimetablePermissions;
    /**
     * 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
     * - documentation: Version number of response. fixed. | A string indicating the versioin of a SIRI data structure.
     * @var string
     */
    public $version;
    /**
     * Constructor method for ProductionTimetableCapabilitiesResponseStructure
     * @uses ProductionTimetableCapabilitiesResponseStructure::setProductionTimetableServiceCapabilities()
     * @uses ProductionTimetableCapabilitiesResponseStructure::setProductionTimetablePermissions()
     * @uses ProductionTimetableCapabilitiesResponseStructure::setExtensions()
     * @uses ProductionTimetableCapabilitiesResponseStructure::setVersion()
     * @param \StructType\ProductionTimetableServiceCapabilitiesStructure $productionTimetableServiceCapabilities
     * @param \StructType\ProductionTimetablePermissions $productionTimetablePermissions
     * @param \StructType\ExtensionsStructure $extensions
     * @param string $version
     */
    public function __construct(\StructType\ProductionTimetableServiceCapabilitiesStructure $productionTimetableServiceCapabilities = null, \StructType\ProductionTimetablePermissions $productionTimetablePermissions = null, \StructType\ExtensionsStructure $extensions = null, $version = '2.0')
    {
        $this
            ->setProductionTimetableServiceCapabilities($productionTimetableServiceCapabilities)
            ->setProductionTimetablePermissions($productionTimetablePermissions)
            ->setExtensions($extensions)
            ->setVersion($version);
    }
    /**
     * Get ProductionTimetableServiceCapabilities value
     * @return \StructType\ProductionTimetableServiceCapabilitiesStructure|null
     */
    public function getProductionTimetableServiceCapabilities()
    {
        return $this->ProductionTimetableServiceCapabilities;
    }
    /**
     * Set ProductionTimetableServiceCapabilities value
     * @param \StructType\ProductionTimetableServiceCapabilitiesStructure $productionTimetableServiceCapabilities
     * @return \StructType\ProductionTimetableCapabilitiesResponseStructure
     */
    public function setProductionTimetableServiceCapabilities(\StructType\ProductionTimetableServiceCapabilitiesStructure $productionTimetableServiceCapabilities = null)
    {
        $this->ProductionTimetableServiceCapabilities = $productionTimetableServiceCapabilities;
        return $this;
    }
    /**
     * Get ProductionTimetablePermissions value
     * @return \StructType\ProductionTimetablePermissions|null
     */
    public function getProductionTimetablePermissions()
    {
        return $this->ProductionTimetablePermissions;
    }
    /**
     * Set ProductionTimetablePermissions value
     * @param \StructType\ProductionTimetablePermissions $productionTimetablePermissions
     * @return \StructType\ProductionTimetableCapabilitiesResponseStructure
     */
    public function setProductionTimetablePermissions(\StructType\ProductionTimetablePermissions $productionTimetablePermissions = null)
    {
        $this->ProductionTimetablePermissions = $productionTimetablePermissions;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\ProductionTimetableCapabilitiesResponseStructure
     */
    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\ProductionTimetableCapabilitiesResponseStructure
     */
    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\ProductionTimetableCapabilitiesResponseStructure
     */
    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__;
    }
}
