<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 getReklamacjeResponse StructType
 * @subpackage Structs
 */
class GetReklamacjeResponse extends AbstractStructBase
{
    /**
     * The reklamacja
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var ReklamacjaRozpatrzonaType[]
     */
    public $reklamacja;
    /**
     * Constructor method for getReklamacjeResponse
     * @uses GetReklamacjeResponse::setReklamacja()
     * @param ReklamacjaRozpatrzonaType[] $reklamacja
     */
    public function __construct(array $reklamacja = array())
    {
        $this
            -&gt;setReklamacja($reklamacja);
    }
    /**
     * Get reklamacja value
     * @return ReklamacjaRozpatrzonaType[]|null
     */
    public function getReklamacja()
    {
        return $this-&gt;reklamacja;
    }
    /**
     * This method is responsible for validating the values passed to the setReklamacja method
     * This method is willingly generated in order to preserve the one-line inline validation within the setReklamacja method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateReklamacjaForArrayConstraintsFromSetReklamacja(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $getReklamacjeResponseReklamacjaItem) {
            // validation for constraint: itemType
            if (!$getReklamacjeResponseReklamacjaItem instanceof ReklamacjaRozpatrzonaType) {
                $invalidValues[] = is_object($getReklamacjeResponseReklamacjaItem) ? get_class($getReklamacjeResponseReklamacjaItem) : sprintf('%s(%s)', gettype($getReklamacjeResponseReklamacjaItem), var_export($getReklamacjeResponseReklamacjaItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The reklamacja property can only contain items of type ReklamacjaRozpatrzonaType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set reklamacja value
     * @throws \InvalidArgumentException
     * @param ReklamacjaRozpatrzonaType[] $reklamacja
     * @return GetReklamacjeResponse
     */
    public function setReklamacja(array $reklamacja = array())
    {
        // validation for constraint: array
        if ('' !== ($reklamacjaArrayErrorMessage = self::validateReklamacjaForArrayConstraintsFromSetReklamacja($reklamacja))) {
            throw new \InvalidArgumentException($reklamacjaArrayErrorMessage, __LINE__);
        }
        $this-&gt;reklamacja = $reklamacja;
        return $this;
    }
    /**
     * Add item to reklamacja value
     * @throws \InvalidArgumentException
     * @param ReklamacjaRozpatrzonaType $item
     * @return GetReklamacjeResponse
     */
    public function addToReklamacja(ReklamacjaRozpatrzonaType $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof ReklamacjaRozpatrzonaType) {
            throw new \InvalidArgumentException(sprintf('The reklamacja property can only contain items of type ReklamacjaRozpatrzonaType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this-&gt;reklamacja[] = $item;
        return $this;
    }
}
</pre></body></html>