<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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