<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for QueryGlobalMonitorsOnlineResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:QueryGlobalMonitorsOnlineResponse
 * @subpackage Structs
 */
class QueryGlobalMonitorsOnlineResponse extends AbstractStructBase
{
    /**
     * The ResultData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\ResultData
     */
    public $ResultData;
    /**
     * Constructor method for QueryGlobalMonitorsOnlineResponse
     * @uses QueryGlobalMonitorsOnlineResponse::setResultData()
     * @param \patest\StructType\ResultData $resultData
     */
    public function __construct(\patest\StructType\ResultData $resultData = null)
    {
        $this
            ->setResultData($resultData);
    }
    /**
     * Get ResultData value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\ResultData|null
     */
    public function getResultData()
    {
        return isset($this->ResultData) ? $this->ResultData : null;
    }
    /**
     * Set ResultData value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\ResultData $resultData
     * @return \patest\StructType\QueryGlobalMonitorsOnlineResponse
     */
    public function setResultData(\patest\StructType\ResultData $resultData = null)
    {
        if (is_null($resultData) || (is_array($resultData) && empty($resultData))) {
            unset($this->ResultData);
        } else {
            $this->ResultData = $resultData;
        }
        return $this;
    }
}
