<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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