<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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