<?php

namespace Sabre\SessionCreate\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Warning Structs
 * @subpackage Structs
 */
class Warning extends AbstractStructBase
{
    /**
     * The Language
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Language;
    /**
     * The ShortText
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $ShortText;
    /**
     * The Type
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Type;
    /**
     * The Code
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Code;
    /**
     * The DocURL
     * Meta informations extracted from the WSDL
     * - documentation: If present, this URL refers to an online description of the error that occurred.
     * - use: optional
     * @var string
     */
    public $DocURL;
    /**
     * The Status
     * Meta informations extracted from the WSDL
     * - documentation: If present, recommended values are those enumerated in the OTA_ErrorRS, (NotProcessed | Incomplete | Complete | Unknown) however, the data type is designated as string data, recognizing that trading partners may identify additional
     * status conditions not included in the enumeration.
     * - use: optional
     * @var string
     */
    public $Status;
    /**
     * The Tag
     * Meta informations extracted from the WSDL
     * - documentation: If present, this attribute may identify an unknown or misspelled tag that caused an error in processing. It is recommended that the Tag attribute use XPath notation to identify the location of a tag in the event that more than one
     * tag of the same name is present in the document. Alternatively, the tag name alone can be used to identify missing data [Type=ReqFieldMissing].
     * - use: optional
     * @var string
     */
    public $Tag;
    /**
     * The RecordId
     * Meta informations extracted from the WSDL
     * - documentation: If present, this attribute allows for batch processing and the identification of the record that failed amongst a group of records.
     * - use: optional
     * @var string
     */
    public $RecordId;
    /**
     * Constructor method for Warning
     * @uses Warning::setLanguage()
     * @uses Warning::setShortText()
     * @uses Warning::setType()
     * @uses Warning::setCode()
     * @uses Warning::setDocURL()
     * @uses Warning::setStatus()
     * @uses Warning::setTag()
     * @uses Warning::setRecordId()
     * @param string $language
     * @param string $shortText
     * @param string $type
     * @param string $code
     * @param string $docURL
     * @param string $status
     * @param string $tag
     * @param string $recordId
     */
    public function __construct($language = null, $shortText = null, $type = null, $code = null, $docURL = null, $status = null, $tag = null, $recordId = null)
    {
        $this
            ->setLanguage($language)
            ->setShortText($shortText)
            ->setType($type)
            ->setCode($code)
            ->setDocURL($docURL)
            ->setStatus($status)
            ->setTag($tag)
            ->setRecordId($recordId);
    }
    /**
     * Get Language value
     * @return string|null
     */
    public function getLanguage()
    {
        return $this->Language;
    }
    /**
     * Set Language value
     * @param string $language
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setLanguage($language = null)
    {
        $this->Language = $language;
        return $this;
    }
    /**
     * Get ShortText value
     * @return string|null
     */
    public function getShortText()
    {
        return $this->ShortText;
    }
    /**
     * Set ShortText value
     * @param string $shortText
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setShortText($shortText = null)
    {
        $this->ShortText = $shortText;
        return $this;
    }
    /**
     * Get Type value
     * @return string|null
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @param string $type
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setType($type = null)
    {
        $this->Type = $type;
        return $this;
    }
    /**
     * Get Code value
     * @return string|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setCode($code = null)
    {
        $this->Code = $code;
        return $this;
    }
    /**
     * Get DocURL value
     * @return string|null
     */
    public function getDocURL()
    {
        return $this->DocURL;
    }
    /**
     * Set DocURL value
     * @param string $docURL
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setDocURL($docURL = null)
    {
        $this->DocURL = $docURL;
        return $this;
    }
    /**
     * Get Status value
     * @return string|null
     */
    public function getStatus()
    {
        return $this->Status;
    }
    /**
     * Set Status value
     * @param string $status
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setStatus($status = null)
    {
        $this->Status = $status;
        return $this;
    }
    /**
     * Get Tag value
     * @return string|null
     */
    public function getTag()
    {
        return $this->Tag;
    }
    /**
     * Set Tag value
     * @param string $tag
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setTag($tag = null)
    {
        $this->Tag = $tag;
        return $this;
    }
    /**
     * Get RecordId value
     * @return string|null
     */
    public function getRecordId()
    {
        return $this->RecordId;
    }
    /**
     * Set RecordId value
     * @param string $recordId
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public function setRecordId($recordId = null)
    {
        $this->RecordId = $recordId;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\SessionCreate\Structs\Warning
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
