<?php

namespace Pepitelabs\PWS\ShippingDocumentsService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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