<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetSetAsideAreaMap-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetSetAsideAreaMap-Response
 * @subpackage Structs
 */
class GetSetAsideAreaMap_Response extends ExtensibleDataContract
{
    /**
     * The SeatStatuses
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\AreaStatusInformation
     */
    public $SeatStatuses;
    /**
     * Constructor method for GetSetAsideAreaMap-Response
     * @uses GetSetAsideAreaMap_Response::setSeatStatuses()
     * @param \patest\StructType\AreaStatusInformation $seatStatuses
     */
    public function __construct(\patest\StructType\AreaStatusInformation $seatStatuses = null)
    {
        $this
            ->setSeatStatuses($seatStatuses);
    }
    /**
     * 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\StructType\AreaStatusInformation|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\StructType\AreaStatusInformation $seatStatuses
     * @return \patest\StructType\GetSetAsideAreaMap_Response
     */
    public function setSeatStatuses(\patest\StructType\AreaStatusInformation $seatStatuses = null)
    {
        if (is_null($seatStatuses) || (is_array($seatStatuses) && empty($seatStatuses))) {
            unset($this->SeatStatuses);
        } else {
            $this->SeatStatuses = $seatStatuses;
        }
        return $this;
    }
}
