<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for setStatusZgodyNaEZwrot StructType
 * @subpackage Structs
 */
class SetStatusZgodyNaEZwrot extends AbstractStructBase
{
    /**
     * The statusZgody
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var StatusZgodyEZwrotType[]
     */
    public $statusZgody;
    /**
     * Constructor method for setStatusZgodyNaEZwrot
     * @uses SetStatusZgodyNaEZwrot::setStatusZgody()
     * @param StatusZgodyEZwrotType[] $statusZgody
     */
    public function __construct(array $statusZgody = array())
    {
        $this
            ->setStatusZgody($statusZgody);
    }
    /**
     * Get statusZgody value
     * @return StatusZgodyEZwrotType[]
     */
    public function getStatusZgody()
    {
        return $this->statusZgody;
    }
    /**
     * Set statusZgody value
     * @param StatusZgodyEZwrotType[] $statusZgody
     * @return SetStatusZgodyNaEZwrot
     */
    public function setStatusZgody(array $statusZgody = array())
    {
        $this->statusZgody = $statusZgody;
        return $this;
    }
    /**
     * Add item to statusZgody value
     * @throws \InvalidArgumentException
     * @param StatusZgodyEZwrotType $item
     * @return SetStatusZgodyNaEZwrot
     */
    public function addToStatusZgody(StatusZgodyEZwrotType $item)
    {
        $this->statusZgody[] = $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 SetStatusZgodyNaEZwrot
     */
    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__;
    }
}
