<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7 StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7
 * @subpackage Structs
 */
class SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7 extends SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7
{
    /**
     * The DefaultValue
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\SeatRestrictionsInfo
     */
    public $DefaultValue;
    /**
     * The Options
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfSeatRestrictionsInfo
     */
    public $Options;
    /**
     * Constructor method for
     * SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7
     * @uses SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7::setDefaultValue()
     * @uses SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7::setOptions()
     * @param \patest\StructType\SeatRestrictionsInfo $defaultValue
     * @param \patest\ArrayType\ArrayOfSeatRestrictionsInfo $options
     */
    public function __construct(\patest\StructType\SeatRestrictionsInfo $defaultValue = null, \patest\ArrayType\ArrayOfSeatRestrictionsInfo $options = null)
    {
        $this
            ->setDefaultValue($defaultValue)
            ->setOptions($options);
    }
    /**
     * Get DefaultValue 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\SeatRestrictionsInfo|null
     */
    public function getDefaultValue()
    {
        return isset($this->DefaultValue) ? $this->DefaultValue : null;
    }
    /**
     * Set DefaultValue 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\SeatRestrictionsInfo $defaultValue
     * @return \patest\StructType\SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7
     */
    public function setDefaultValue(\patest\StructType\SeatRestrictionsInfo $defaultValue = null)
    {
        if (is_null($defaultValue) || (is_array($defaultValue) && empty($defaultValue))) {
            unset($this->DefaultValue);
        } else {
            $this->DefaultValue = $defaultValue;
        }
        return $this;
    }
    /**
     * Get Options 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\ArrayType\ArrayOfSeatRestrictionsInfo|null
     */
    public function getOptions()
    {
        return isset($this->Options) ? $this->Options : null;
    }
    /**
     * Set Options 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\ArrayType\ArrayOfSeatRestrictionsInfo $options
     * @return \patest\StructType\SerializedCompactListOfOptionsOfSeatRestrictionsInfo8Q8HnG_P7
     */
    public function setOptions(\patest\ArrayType\ArrayOfSeatRestrictionsInfo $options = null)
    {
        if (is_null($options) || (is_array($options) && empty($options))) {
            unset($this->Options);
        } else {
            $this->Options = $options;
        }
        return $this;
    }
}
