<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RetrieveHallVersionDesign-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:RetrieveHallVersionDesign-Response
 * @subpackage Structs
 */
class RetrieveHallVersionDesign_Response extends ExtensibleDataContract
{
    /**
     * The HallVersion
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\HallVersionDesign
     */
    public $HallVersion;
    /**
     * The Venue
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\VenueDesign
     */
    public $Venue;
    /**
     * Constructor method for RetrieveHallVersionDesign-Response
     * @uses RetrieveHallVersionDesign_Response::setHallVersion()
     * @uses RetrieveHallVersionDesign_Response::setVenue()
     * @param \patest\StructType\HallVersionDesign $hallVersion
     * @param \patest\StructType\VenueDesign $venue
     */
    public function __construct(\patest\StructType\HallVersionDesign $hallVersion = null, \patest\StructType\VenueDesign $venue = null)
    {
        $this
            ->setHallVersion($hallVersion)
            ->setVenue($venue);
    }
    /**
     * Get HallVersion 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\HallVersionDesign|null
     */
    public function getHallVersion()
    {
        return isset($this->HallVersion) ? $this->HallVersion : null;
    }
    /**
     * Set HallVersion 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\HallVersionDesign $hallVersion
     * @return \patest\StructType\RetrieveHallVersionDesign_Response
     */
    public function setHallVersion(\patest\StructType\HallVersionDesign $hallVersion = null)
    {
        if (is_null($hallVersion) || (is_array($hallVersion) && empty($hallVersion))) {
            unset($this->HallVersion);
        } else {
            $this->HallVersion = $hallVersion;
        }
        return $this;
    }
    /**
     * Get Venue 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\VenueDesign|null
     */
    public function getVenue()
    {
        return isset($this->Venue) ? $this->Venue : null;
    }
    /**
     * Set Venue 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\VenueDesign $venue
     * @return \patest\StructType\RetrieveHallVersionDesign_Response
     */
    public function setVenue(\patest\StructType\VenueDesign $venue = null)
    {
        if (is_null($venue) || (is_array($venue) && empty($venue))) {
            unset($this->Venue);
        } else {
            $this->Venue = $venue;
        }
        return $this;
    }
}
