<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetEventSeatStatus-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetEventSeatStatus-Response
 * @subpackage Structs
 */
class GetEventSeatStatus_Response extends ExtensibleDataContract
{
    /**
     * The BestAvailableSeatIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfint
     */
    public $BestAvailableSeatIds;
    /**
     * The SeatStatuses
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea
     */
    public $SeatStatuses;
    /**
     * Constructor method for GetEventSeatStatus-Response
     * @uses GetEventSeatStatus_Response::setBestAvailableSeatIds()
     * @uses GetEventSeatStatus_Response::setSeatStatuses()
     * @param \patest\ArrayType\ArrayOfint $bestAvailableSeatIds
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea $seatStatuses
     */
    public function __construct(\patest\ArrayType\ArrayOfint $bestAvailableSeatIds = null, \patest\ArrayType\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea $seatStatuses = null)
    {
        $this
            ->setBestAvailableSeatIds($bestAvailableSeatIds)
            ->setSeatStatuses($seatStatuses);
    }
    /**
     * Get BestAvailableSeatIds 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\ArrayOfint|null
     */
    public function getBestAvailableSeatIds()
    {
        return isset($this->BestAvailableSeatIds) ? $this->BestAvailableSeatIds : null;
    }
    /**
     * Set BestAvailableSeatIds 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\ArrayOfint $bestAvailableSeatIds
     * @return \patest\StructType\GetEventSeatStatus_Response
     */
    public function setBestAvailableSeatIds(\patest\ArrayType\ArrayOfint $bestAvailableSeatIds = null)
    {
        if (is_null($bestAvailableSeatIds) || (is_array($bestAvailableSeatIds) && empty($bestAvailableSeatIds))) {
            unset($this->BestAvailableSeatIds);
        } else {
            $this->BestAvailableSeatIds = $bestAvailableSeatIds;
        }
        return $this;
    }
    /**
     * Get SeatStatuses 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\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea|null
     */
    public function getSeatStatuses()
    {
        return isset($this->SeatStatuses) ? $this->SeatStatuses : null;
    }
    /**
     * Set SeatStatuses 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\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea $seatStatuses
     * @return \patest\StructType\GetEventSeatStatus_Response
     */
    public function setSeatStatuses(\patest\ArrayType\ArrayOfKeyValueOfguidAreaStatusInformationhpjoQDea $seatStatuses = null)
    {
        if (is_null($seatStatuses) || (is_array($seatStatuses) && empty($seatStatuses))) {
            unset($this->SeatStatuses);
        } else {
            $this->SeatStatuses = $seatStatuses;
        }
        return $this;
    }
}
