<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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