<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Exception StructType
 * Meta informations extracted from the WSDL
 * - nillable: true
 * - type: tns:Exception
 * @subpackage Structs
 */
class Exception extends AbstractStructBase
{
    /**
     * The any
     * @var \DOMDocument
     */
    public $any;
    /**
     * The FactoryType
     * Meta informations extracted from the WSDL
     * - ref: ser:FactoryType
     * @var string
     */
    public $FactoryType;
    /**
     * Constructor method for Exception
     * @uses Exception::setAny()
     * @uses Exception::setFactoryType()
     * @param \DOMDocument $any
     * @param string $factoryType
     */
    public function __construct(\DOMDocument $any = null, $factoryType = null)
    {
        $this
            -&gt;setAny($any)
            -&gt;setFactoryType($factoryType);
    }
    /**
     * Get any value
     * @uses \DOMDocument::loadXML()
     * @uses \DOMDocument::hasChildNodes()
     * @uses \DOMDocument::saveXML()
     * @uses \DOMNode::item()
     * @uses Exception::setAny()
     * @param bool $asString true: returns XML string, false: returns \DOMDocument
     * @return \DOMDocument|null
     */
    public function getAny($asString = true)
    {
        if (!empty($this-&gt;any) &amp;&amp; !($this-&gt;any instanceof \DOMDocument)) {
            $dom = new \DOMDocument('1.0', 'UTF-8');
            $dom-&gt;formatOutput = true;
            if ($dom-&gt;loadXML($this-&gt;any)) {
                $this-&gt;setAny($dom);
            }
            unset($dom);
        }
        return ($asString &amp;&amp; ($this-&gt;any instanceof \DOMDocument) &amp;&amp; $this-&gt;any-&gt;hasChildNodes()) ? $this-&gt;any-&gt;saveXML($this-&gt;any-&gt;childNodes-&gt;item(0)) : $this-&gt;any;
    }
    /**
     * Set any value
     * @param \DOMDocument $any
     * @return Exception
     */
    public function setAny(\DOMDocument $any = null)
    {
        $this-&gt;any = $any;
        return $this;
    }
    /**
     * Get FactoryType value
     * @return string|null
     */
    public function getFactoryType()
    {
        return $this-&gt;FactoryType;
    }
    /**
     * Set FactoryType value
     * @param string $factoryType
     * @return Exception
     */
    public function setFactoryType($factoryType = null)
    {
        $this-&gt;FactoryType = $factoryType;
        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 Exception
     */
    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__;
    }
}
</pre></body></html>