<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AccessControl.BarcodeInfo.SwitchHallEntity StructType
 * @subpackage Structs
 */
class AccessControl_BarcodeInfo_SwitchHallEntity extends AccessControl_BarcodeInfo_Base
{
    /**
     * The HallName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $HallName;
    /**
     * Constructor method for AccessControl.BarcodeInfo.SwitchHallEntity
     * @uses AccessControl_BarcodeInfo_SwitchHallEntity::setHallName()
     * @param \patest\StructType\GlobalString $hallName
     */
    public function __construct(\patest\StructType\GlobalString $hallName = null)
    {
        $this
            ->setHallName($hallName);
    }
    /**
     * Get HallName 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\GlobalString|null
     */
    public function getHallName()
    {
        return isset($this->HallName) ? $this->HallName : null;
    }
    /**
     * Set HallName 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\GlobalString $hallName
     * @return \patest\StructType\AccessControl_BarcodeInfo_SwitchHallEntity
     */
    public function setHallName(\patest\StructType\GlobalString $hallName = null)
    {
        if (is_null($hallName) || (is_array($hallName) && empty($hallName))) {
            unset($this->HallName);
        } else {
            $this->HallName = $hallName;
        }
        return $this;
    }
}
