<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ErrorCondition StructType
 * Meta informations extracted from the WSDL
 * - documentation: Description of any error or warning condition. | Description of any error or warning condition as to why Consumer cannot fetch data. | Description of any error or warning condition. | Description of any error or warning condition
 * that applies to the status check. | Description of any error or warning conditions that appluy to the overall request. More Specific error conditions should be included on each request that fails. | Description of any error or warning condition. |
 * Description of any error or warning condition. | Description of error or warning condition associated with response.
 * - minOccurs: 0
 * - type: ErrorConditionStructure
 * @subpackage Structs
 */
class ErrorCondition extends AbstractStructBase
{
    /**
     * The CapabilityNotSupportedError
     * Meta informations extracted from the WSDL
     * - ref: CapabilityNotSupportedError
     * @var \StructType\CapabilityNotSupportedErrorStructure
     */
    public $CapabilityNotSupportedError;
    /**
     * The OtherError
     * Meta informations extracted from the WSDL
     * - ref: OtherError
     * @var \StructType\OtherErrorStructure
     */
    public $OtherError;
    /**
     * The Description
     * Meta informations extracted from the WSDL
     * - documentation: Text description of error. | Text description of error. | Text description of error. | Text description of error. | Text description of error.
     * - minOccurs: 0
     * @var \StructType\ErrorDescriptionStructure
     */
    public $Description;
    /**
     * The UnknownSubscriberError
     * Meta informations extracted from the WSDL
     * - ref: UnknownSubscriberError
     * @var \StructType\UnknownSubscriberErrorStructure
     */
    public $UnknownSubscriberError;
    /**
     * The UnknownSubscriptionError
     * Meta informations extracted from the WSDL
     * - ref: UnknownSubscriptionError
     * @var \StructType\UnknownSubscriptionErrorStructure
     */
    public $UnknownSubscriptionError;
    /**
     * The ServiceNotAvailableError
     * Meta informations extracted from the WSDL
     * - ref: ServiceNotAvailableError
     * @var \StructType\ServiceNotAvailableErrorStructure
     */
    public $ServiceNotAvailableError;
    /**
     * Constructor method for ErrorCondition
     * @uses ErrorCondition::setCapabilityNotSupportedError()
     * @uses ErrorCondition::setOtherError()
     * @uses ErrorCondition::setDescription()
     * @uses ErrorCondition::setUnknownSubscriberError()
     * @uses ErrorCondition::setUnknownSubscriptionError()
     * @uses ErrorCondition::setServiceNotAvailableError()
     * @param \StructType\CapabilityNotSupportedErrorStructure $capabilityNotSupportedError
     * @param \StructType\OtherErrorStructure $otherError
     * @param \StructType\ErrorDescriptionStructure $description
     * @param \StructType\UnknownSubscriberErrorStructure $unknownSubscriberError
     * @param \StructType\UnknownSubscriptionErrorStructure $unknownSubscriptionError
     * @param \StructType\ServiceNotAvailableErrorStructure $serviceNotAvailableError
     */
    public function __construct(\StructType\CapabilityNotSupportedErrorStructure $capabilityNotSupportedError = null, \StructType\OtherErrorStructure $otherError = null, \StructType\ErrorDescriptionStructure $description = null, \StructType\UnknownSubscriberErrorStructure $unknownSubscriberError = null, \StructType\UnknownSubscriptionErrorStructure $unknownSubscriptionError = null, \StructType\ServiceNotAvailableErrorStructure $serviceNotAvailableError = null)
    {
        $this
            ->setCapabilityNotSupportedError($capabilityNotSupportedError)
            ->setOtherError($otherError)
            ->setDescription($description)
            ->setUnknownSubscriberError($unknownSubscriberError)
            ->setUnknownSubscriptionError($unknownSubscriptionError)
            ->setServiceNotAvailableError($serviceNotAvailableError);
    }
    /**
     * Get CapabilityNotSupportedError value
     * @return \StructType\CapabilityNotSupportedErrorStructure|null
     */
    public function getCapabilityNotSupportedError()
    {
        return $this->CapabilityNotSupportedError;
    }
    /**
     * Set CapabilityNotSupportedError value
     * @param \StructType\CapabilityNotSupportedErrorStructure $capabilityNotSupportedError
     * @return \StructType\ErrorCondition
     */
    public function setCapabilityNotSupportedError(\StructType\CapabilityNotSupportedErrorStructure $capabilityNotSupportedError = null)
    {
        $this->CapabilityNotSupportedError = $capabilityNotSupportedError;
        return $this;
    }
    /**
     * Get OtherError value
     * @return \StructType\OtherErrorStructure|null
     */
    public function getOtherError()
    {
        return $this->OtherError;
    }
    /**
     * Set OtherError value
     * @param \StructType\OtherErrorStructure $otherError
     * @return \StructType\ErrorCondition
     */
    public function setOtherError(\StructType\OtherErrorStructure $otherError = null)
    {
        $this->OtherError = $otherError;
        return $this;
    }
    /**
     * Get Description value
     * @return \StructType\ErrorDescriptionStructure|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param \StructType\ErrorDescriptionStructure $description
     * @return \StructType\ErrorCondition
     */
    public function setDescription(\StructType\ErrorDescriptionStructure $description = null)
    {
        $this->Description = $description;
        return $this;
    }
    /**
     * Get UnknownSubscriberError value
     * @return \StructType\UnknownSubscriberErrorStructure|null
     */
    public function getUnknownSubscriberError()
    {
        return $this->UnknownSubscriberError;
    }
    /**
     * Set UnknownSubscriberError value
     * @param \StructType\UnknownSubscriberErrorStructure $unknownSubscriberError
     * @return \StructType\ErrorCondition
     */
    public function setUnknownSubscriberError(\StructType\UnknownSubscriberErrorStructure $unknownSubscriberError = null)
    {
        $this->UnknownSubscriberError = $unknownSubscriberError;
        return $this;
    }
    /**
     * Get UnknownSubscriptionError value
     * @return \StructType\UnknownSubscriptionErrorStructure|null
     */
    public function getUnknownSubscriptionError()
    {
        return $this->UnknownSubscriptionError;
    }
    /**
     * Set UnknownSubscriptionError value
     * @param \StructType\UnknownSubscriptionErrorStructure $unknownSubscriptionError
     * @return \StructType\ErrorCondition
     */
    public function setUnknownSubscriptionError(\StructType\UnknownSubscriptionErrorStructure $unknownSubscriptionError = null)
    {
        $this->UnknownSubscriptionError = $unknownSubscriptionError;
        return $this;
    }
    /**
     * Get ServiceNotAvailableError value
     * @return \StructType\ServiceNotAvailableErrorStructure|null
     */
    public function getServiceNotAvailableError()
    {
        return $this->ServiceNotAvailableError;
    }
    /**
     * Set ServiceNotAvailableError value
     * @param \StructType\ServiceNotAvailableErrorStructure $serviceNotAvailableError
     * @return \StructType\ErrorCondition
     */
    public function setServiceNotAvailableError(\StructType\ServiceNotAvailableErrorStructure $serviceNotAvailableError = null)
    {
        $this->ServiceNotAvailableError = $serviceNotAvailableError;
        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 \StructType\ErrorCondition
     */
    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__;
    }
}
