<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TicketDataMedium StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:TicketDataMedium
 * @subpackage Structs
 */
class TicketDataMedium extends TicketDataMin
{
    /**
     * The HallName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $HallName;
    /**
     * The TicketStatus
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $TicketStatus;
    /**
     * Constructor method for TicketDataMedium
     * @uses TicketDataMedium::setHallName()
     * @uses TicketDataMedium::setTicketStatus()
     * @param string $hallName
     * @param string $ticketStatus
     */
    public function __construct($hallName = null, $ticketStatus = null)
    {
        $this
            ->setHallName($hallName)
            ->setTicketStatus($ticketStatus);
    }
    /**
     * 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 string|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 string $hallName
     * @return \patest\StructType\TicketDataMedium
     */
    public function setHallName($hallName = null)
    {
        // validation for constraint: string
        if (!is_null($hallName) && !is_string($hallName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($hallName, true), gettype($hallName)), __LINE__);
        }
        if (is_null($hallName) || (is_array($hallName) && empty($hallName))) {
            unset($this->HallName);
        } else {
            $this->HallName = $hallName;
        }
        return $this;
    }
    /**
     * Get TicketStatus 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 string|null
     */
    public function getTicketStatus()
    {
        return isset($this->TicketStatus) ? $this->TicketStatus : null;
    }
    /**
     * Set TicketStatus 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 string $ticketStatus
     * @return \patest\StructType\TicketDataMedium
     */
    public function setTicketStatus($ticketStatus = null)
    {
        // validation for constraint: string
        if (!is_null($ticketStatus) && !is_string($ticketStatus)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($ticketStatus, true), gettype($ticketStatus)), __LINE__);
        }
        if (is_null($ticketStatus) || (is_array($ticketStatus) && empty($ticketStatus))) {
            unset($this->TicketStatus);
        } else {
            $this->TicketStatus = $ticketStatus;
        }
        return $this;
    }
}
