<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for StopMonitorPermissionStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Monitoring Point (LOGICAL DISPLAY) Permission.
 * @subpackage Structs
 */
class StopMonitorPermissionStructure extends AbstractTopicPermissionStructure
{
    /**
     * The MonitoringRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to a Stop Monitoring point (LOGICAL DISPLAY) to which permission applies.
     * @var \StructType\MonitoringRefStructure
     */
    public $MonitoringRef;
    /**
     * Constructor method for StopMonitorPermissionStructure
     * @uses StopMonitorPermissionStructure::setMonitoringRef()
     * @param \StructType\MonitoringRefStructure $monitoringRef
     */
    public function __construct(\StructType\MonitoringRefStructure $monitoringRef = null)
    {
        $this
            ->setMonitoringRef($monitoringRef);
    }
    /**
     * Get MonitoringRef value
     * @return \StructType\MonitoringRefStructure|null
     */
    public function getMonitoringRef()
    {
        return $this->MonitoringRef;
    }
    /**
     * Set MonitoringRef value
     * @param \StructType\MonitoringRefStructure $monitoringRef
     * @return \StructType\StopMonitorPermissionStructure
     */
    public function setMonitoringRef(\StructType\MonitoringRefStructure $monitoringRef = null)
    {
        $this->MonitoringRef = $monitoringRef;
        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\StopMonitorPermissionStructure
     */
    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__;
    }
}
