<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VehicleMonitorPermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for MonitoringPoint Permission.
 * @subpackage Structs
 */
class VehicleMonitorPermissionStructure extends AbstractTopicPermissionStructure
{
    /**
     * The VehicleMonitoringRef
     * Meta informations extracted from the WSDL
     * - documentation: Vehicle Monitoring reference for which permission is made.
     * @var \StructType\VehicleMonitoringRefStructure
     */
    public $VehicleMonitoringRef;
    /**
     * Constructor method for VehicleMonitorPermissionStructure
     * @uses VehicleMonitorPermissionStructure::setVehicleMonitoringRef()
     * @param \StructType\VehicleMonitoringRefStructure $vehicleMonitoringRef
     */
    public function __construct(\StructType\VehicleMonitoringRefStructure $vehicleMonitoringRef = null)
    {
        $this
            ->setVehicleMonitoringRef($vehicleMonitoringRef);
    }
    /**
     * Get VehicleMonitoringRef value
     * @return \StructType\VehicleMonitoringRefStructure|null
     */
    public function getVehicleMonitoringRef()
    {
        return $this->VehicleMonitoringRef;
    }
    /**
     * Set VehicleMonitoringRef value
     * @param \StructType\VehicleMonitoringRefStructure $vehicleMonitoringRef
     * @return \StructType\VehicleMonitorPermissionStructure
     */
    public function setVehicleMonitoringRef(\StructType\VehicleMonitoringRefStructure $vehicleMonitoringRef = null)
    {
        $this->VehicleMonitoringRef = $vehicleMonitoringRef;
        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\VehicleMonitorPermissionStructure
     */
    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__;
    }
}
