<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Ticketing.SelectEvents.Request StructType
 * @subpackage Structs
 */
class BizAction_Ticketing_SelectEvents_Request extends AnyEntity
{
    /**
     * The DatesToExclude
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfTicketing_DatesToExclude
     */
    public $DatesToExclude;
    /**
     * The EventIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\EventIds
     */
    public $EventIds;
    /**
     * The EventsCriteria
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Ticketing_SelectEvents_Criteria
     */
    public $EventsCriteria;
    /**
     * Constructor method for BizAction.Ticketing.SelectEvents.Request
     * @uses BizAction_Ticketing_SelectEvents_Request::setDatesToExclude()
     * @uses BizAction_Ticketing_SelectEvents_Request::setEventIds()
     * @uses BizAction_Ticketing_SelectEvents_Request::setEventsCriteria()
     * @param \patest\StructType\RecordSetOfTicketing_DatesToExclude $datesToExclude
     * @param \patest\StructType\EventIds $eventIds
     * @param \patest\StructType\Ticketing_SelectEvents_Criteria $eventsCriteria
     */
    public function __construct(\patest\StructType\RecordSetOfTicketing_DatesToExclude $datesToExclude = null, \patest\StructType\EventIds $eventIds = null, \patest\StructType\Ticketing_SelectEvents_Criteria $eventsCriteria = null)
    {
        $this
            ->setDatesToExclude($datesToExclude)
            ->setEventIds($eventIds)
            ->setEventsCriteria($eventsCriteria);
    }
    /**
     * Get DatesToExclude 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\RecordSetOfTicketing_DatesToExclude|null
     */
    public function getDatesToExclude()
    {
        return isset($this->DatesToExclude) ? $this->DatesToExclude : null;
    }
    /**
     * Set DatesToExclude 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\RecordSetOfTicketing_DatesToExclude $datesToExclude
     * @return \patest\StructType\BizAction_Ticketing_SelectEvents_Request
     */
    public function setDatesToExclude(\patest\StructType\RecordSetOfTicketing_DatesToExclude $datesToExclude = null)
    {
        if (is_null($datesToExclude) || (is_array($datesToExclude) && empty($datesToExclude))) {
            unset($this->DatesToExclude);
        } else {
            $this->DatesToExclude = $datesToExclude;
        }
        return $this;
    }
    /**
     * Get EventIds 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\EventIds|null
     */
    public function getEventIds()
    {
        return isset($this->EventIds) ? $this->EventIds : null;
    }
    /**
     * Set EventIds 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\EventIds $eventIds
     * @return \patest\StructType\BizAction_Ticketing_SelectEvents_Request
     */
    public function setEventIds(\patest\StructType\EventIds $eventIds = null)
    {
        if (is_null($eventIds) || (is_array($eventIds) && empty($eventIds))) {
            unset($this->EventIds);
        } else {
            $this->EventIds = $eventIds;
        }
        return $this;
    }
    /**
     * Get EventsCriteria 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\Ticketing_SelectEvents_Criteria|null
     */
    public function getEventsCriteria()
    {
        return isset($this->EventsCriteria) ? $this->EventsCriteria : null;
    }
    /**
     * Set EventsCriteria 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\Ticketing_SelectEvents_Criteria $eventsCriteria
     * @return \patest\StructType\BizAction_Ticketing_SelectEvents_Request
     */
    public function setEventsCriteria(\patest\StructType\Ticketing_SelectEvents_Criteria $eventsCriteria = null)
    {
        if (is_null($eventsCriteria) || (is_array($eventsCriteria) && empty($eventsCriteria))) {
            unset($this->EventsCriteria);
        } else {
            $this->EventsCriteria = $eventsCriteria;
        }
        return $this;
    }
}
