<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetPublicEventVisibilityInfoResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetPublicEventVisibilityInfoResponse
 * @subpackage Structs
 */
class GetPublicEventVisibilityInfoResponse extends ExtensibleDataContract
{
    /**
     * The EventsInfo
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea
     */
    public $EventsInfo;
    /**
     * Constructor method for GetPublicEventVisibilityInfoResponse
     * @uses GetPublicEventVisibilityInfoResponse::setEventsInfo()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea $eventsInfo
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea $eventsInfo = null)
    {
        $this
            ->setEventsInfo($eventsInfo);
    }
    /**
     * Get EventsInfo 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\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea|null
     */
    public function getEventsInfo()
    {
        return isset($this->EventsInfo) ? $this->EventsInfo : null;
    }
    /**
     * Set EventsInfo 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\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea $eventsInfo
     * @return \patest\StructType\GetPublicEventVisibilityInfoResponse
     */
    public function setEventsInfo(\patest\ArrayType\ArrayOfKeyValueOfguidPublicEventVisibilityInfohpjoQDea $eventsInfo = null)
    {
        if (is_null($eventsInfo) || (is_array($eventsInfo) && empty($eventsInfo))) {
            unset($this->EventsInfo);
        } else {
            $this->EventsInfo = $eventsInfo;
        }
        return $this;
    }
}
