<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetAreasOfHallVersion-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetAreasOfHallVersion-Response
 * @subpackage Structs
 */
class GetAreasOfHallVersion_Response extends ExtensibleDataContract
{
    /**
     * The Values
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidstring
     */
    public $Values;
    /**
     * Constructor method for GetAreasOfHallVersion-Response
     * @uses GetAreasOfHallVersion_Response::setValues()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $values
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidstring $values = null)
    {
        $this
            ->setValues($values);
    }
    /**
     * Get Values 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\ArrayOfKeyValueOfguidstring|null
     */
    public function getValues()
    {
        return isset($this->Values) ? $this->Values : null;
    }
    /**
     * Set Values 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\ArrayOfKeyValueOfguidstring $values
     * @return \patest\StructType\GetAreasOfHallVersion_Response
     */
    public function setValues(\patest\ArrayType\ArrayOfKeyValueOfguidstring $values = null)
    {
        if (is_null($values) || (is_array($values) && empty($values))) {
            unset($this->Values);
        } else {
            $this->Values = $values;
        }
        return $this;
    }
}
