<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addOdwolanieDoReklamacjiResponse StructType
 * @subpackage Structs
 */
class AddOdwolanieDoReklamacjiResponse extends AbstractStructBase
{
    /**
     * The error
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var ErrorType[]
     */
    public $error;
    /**
     * The reklamacjaInfo
     * Meta informations extracted from the WSDL
     * - maxOccurs: 500
     * - minOccurs: 0
     * @var ReklamacjaInfoType[]
     */
    public $reklamacjaInfo;
    /**
     * Constructor method for addOdwolanieDoReklamacjiResponse
     * @uses AddOdwolanieDoReklamacjiResponse::setError()
     * @uses AddOdwolanieDoReklamacjiResponse::setReklamacjaInfo()
     * @param ErrorType[] $error
     * @param ReklamacjaInfoType[] $reklamacjaInfo
     */
    public function __construct(array $error = array(), array $reklamacjaInfo = array())
    {
        $this
            ->setError($error)
            ->setReklamacjaInfo($reklamacjaInfo);
    }
    /**
     * Get error value
     * @return ErrorType[]|null
     */
    public function getError()
    {
        return $this->error;
    }
    /**
     * Set error value
     * @throws \InvalidArgumentException
     * @param ErrorType[] $error
     * @return AddOdwolanieDoReklamacjiResponse
     */
    public function setError(array $error = array())
    {
        $this->error = $error;
        return $this;
    }
    /**
     * Add item to error value
     * @throws \InvalidArgumentException
     * @param ErrorType $item
     * @return AddOdwolanieDoReklamacjiResponse
     */
    public function addToError(ErrorType $item)
    {
        $this->error[] = $item;
        return $this;
    }
    /**
     * Get reklamacjaInfo value
     * @return ReklamacjaInfoType[]|null
     */
    public function getReklamacjaInfo()
    {
        return $this->reklamacjaInfo;
    }
    /**
     * Set reklamacjaInfo value
     * @throws \InvalidArgumentException
     * @param ReklamacjaInfoType[] $reklamacjaInfo
     * @return AddOdwolanieDoReklamacjiResponse
     */
    public function setReklamacjaInfo(array $reklamacjaInfo = array())
    {
        $this->reklamacjaInfo = $reklamacjaInfo;
        return $this;
    }
    /**
     * Add item to reklamacjaInfo value
     * @throws \InvalidArgumentException
     * @param ReklamacjaInfoType $item
     * @return AddOdwolanieDoReklamacjiResponse
     */
    public function addToReklamacjaInfo(ReklamacjaInfoType $item)
    {
        $this->reklamacjaInfo[] = $item;
        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 AddOdwolanieDoReklamacjiResponse
     */
    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__;
    }
}
