<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VehicleMonitoringCapabilitiesResponseStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Delivery for Vehicle Monitoring Service.
 * @subpackage Structs
 */
class VehicleMonitoringCapabilitiesResponseStructure extends AbstractServiceCapabilitiesResponseStructure
{
    /**
     * The VehicleMonitoringServiceCapabilities
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: VehicleMonitoringServiceCapabilities
     * @var \StructType\VehicleMonitoringServiceCapabilitiesStructure
     */
    public $VehicleMonitoringServiceCapabilities;
    /**
     * The VehicleMonitoringPermissions
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - ref: VehicleMonitoringPermissions
     * @var \StructType\VehicleMonitoringPermissions
     */
    public $VehicleMonitoringPermissions;
    /**
     * 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 VehicleMonitoringCapabilitiesResponseStructure
     * @uses VehicleMonitoringCapabilitiesResponseStructure::setVehicleMonitoringServiceCapabilities()
     * @uses VehicleMonitoringCapabilitiesResponseStructure::setVehicleMonitoringPermissions()
     * @uses VehicleMonitoringCapabilitiesResponseStructure::setExtensions()
     * @uses VehicleMonitoringCapabilitiesResponseStructure::setVersion()
     * @param \StructType\VehicleMonitoringServiceCapabilitiesStructure $vehicleMonitoringServiceCapabilities
     * @param \StructType\VehicleMonitoringPermissions $vehicleMonitoringPermissions
     * @param \StructType\ExtensionsStructure $extensions
     * @param string $version
     */
    public function __construct(\StructType\VehicleMonitoringServiceCapabilitiesStructure $vehicleMonitoringServiceCapabilities = null, \StructType\VehicleMonitoringPermissions $vehicleMonitoringPermissions = null, \StructType\ExtensionsStructure $extensions = null, $version = '2.0')
    {
        $this
            ->setVehicleMonitoringServiceCapabilities($vehicleMonitoringServiceCapabilities)
            ->setVehicleMonitoringPermissions($vehicleMonitoringPermissions)
            ->setExtensions($extensions)
            ->setVersion($version);
    }
    /**
     * Get VehicleMonitoringServiceCapabilities value
     * @return \StructType\VehicleMonitoringServiceCapabilitiesStructure|null
     */
    public function getVehicleMonitoringServiceCapabilities()
    {
        return $this->VehicleMonitoringServiceCapabilities;
    }
    /**
     * Set VehicleMonitoringServiceCapabilities value
     * @param \StructType\VehicleMonitoringServiceCapabilitiesStructure $vehicleMonitoringServiceCapabilities
     * @return \StructType\VehicleMonitoringCapabilitiesResponseStructure
     */
    public function setVehicleMonitoringServiceCapabilities(\StructType\VehicleMonitoringServiceCapabilitiesStructure $vehicleMonitoringServiceCapabilities = null)
    {
        $this->VehicleMonitoringServiceCapabilities = $vehicleMonitoringServiceCapabilities;
        return $this;
    }
    /**
     * Get VehicleMonitoringPermissions value
     * @return \StructType\VehicleMonitoringPermissions|null
     */
    public function getVehicleMonitoringPermissions()
    {
        return $this->VehicleMonitoringPermissions;
    }
    /**
     * Set VehicleMonitoringPermissions value
     * @param \StructType\VehicleMonitoringPermissions $vehicleMonitoringPermissions
     * @return \StructType\VehicleMonitoringCapabilitiesResponseStructure
     */
    public function setVehicleMonitoringPermissions(\StructType\VehicleMonitoringPermissions $vehicleMonitoringPermissions = null)
    {
        $this->VehicleMonitoringPermissions = $vehicleMonitoringPermissions;
        return $this;
    }
    /**
     * Get Extensions value
     * @return \StructType\ExtensionsStructure|null
     */
    public function getExtensions()
    {
        return $this->Extensions;
    }
    /**
     * Set Extensions value
     * @param \StructType\ExtensionsStructure $extensions
     * @return \StructType\VehicleMonitoringCapabilitiesResponseStructure
     */
    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\VehicleMonitoringCapabilitiesResponseStructure
     */
    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\VehicleMonitoringCapabilitiesResponseStructure
     */
    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__;
    }
}
