<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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