<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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