<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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