<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResponseInformation StructType
 * Meta informations extracted from the WSDL
 * - nillable: true
 * - type: tns:ResponseInformation
 * @subpackage Structs
 */
class ResponseInformation extends AbstractStructBase
{
    /**
     * The Errors
     * Meta informations extracted from the WSDL
     * - nillable: true
     * @var ArrayOfError
     */
    public $Errors;
    /**
     * The InformationalMessages
     * Meta informations extracted from the WSDL
     * - nillable: true
     * @var ArrayOfInformationalMessage
     */
    public $InformationalMessages;
    /**
     * Constructor method for ResponseInformation
     * @uses ResponseInformation::setErrors()
     * @uses ResponseInformation::setInformationalMessages()
     * @param ArrayOfError $errors
     * @param ArrayOfInformationalMessage $informationalMessages
     */
    public function __construct(ArrayOfError $errors = null, ArrayOfInformationalMessage $informationalMessages = null)
    {
        $this
            ->setErrors($errors)
            ->setInformationalMessages($informationalMessages);
    }
    /**
     * Get Errors value
     * @return ArrayOfError|null
     */
    public function getErrors()
    {
        return $this->Errors;
    }
    /**
     * Set Errors value
     * @param ArrayOfError $errors
     * @return ResponseInformation
     */
    public function setErrors(ArrayOfError $errors = null)
    {
        $this->Errors = $errors;
        return $this;
    }
    /**
     * Get InformationalMessages value
     * @return ArrayOfInformationalMessage|null
     */
    public function getInformationalMessages()
    {
        return $this->InformationalMessages;
    }
    /**
     * Set InformationalMessages value
     * @param ArrayOfInformationalMessage $informationalMessages
     * @return ResponseInformation
     */
    public function setInformationalMessages(ArrayOfInformationalMessage $informationalMessages = null)
    {
        $this->InformationalMessages = $informationalMessages;
        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 ResponseInformation
     */
    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__;
    }
}
