<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateHallVersionStatus-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:UpdateHallVersionStatus-Response
 * @subpackage Structs
 */
class UpdateHallVersionStatus_Response extends ExtensibleDataContract
{
    /**
     * The Status
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $Status;
    /**
     * Constructor method for UpdateHallVersionStatus-Response
     * @uses UpdateHallVersionStatus_Response::setStatus()
     * @param string $status
     */
    public function __construct($status = null)
    {
        $this
            ->setStatus($status);
    }
    /**
     * Get Status value
     * @return string|null
     */
    public function getStatus()
    {
        return $this->Status;
    }
    /**
     * Set Status value
     * @uses \patest\EnumType\HallVersionStatus::valueIsValid()
     * @uses \patest\EnumType\HallVersionStatus::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $status
     * @return \patest\StructType\UpdateHallVersionStatus_Response
     */
    public function setStatus($status = null)
    {
        // validation for constraint: enumeration
        if (!\patest\EnumType\HallVersionStatus::valueIsValid($status)) {
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \patest\EnumType\HallVersionStatus', is_array($status) ? implode(', ', $status) : var_export($status, true), implode(', ', \patest\EnumType\HallVersionStatus::getValidValues())), __LINE__);
        }
        $this->Status = $status;
        return $this;
    }
}
