<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for isObszarMiasto StructType
 * @subpackage Structs
 */
class IsObszarMiasto extends AbstractStructBase
{
    /**
     * The adres
     * Meta information extracted from the WSDL
     * - maxOccurs: 500
     * - minOccurs: 1
     * @var ObszarAdresowyType[]
     */
    public $adres;
    /**
     * Constructor method for isObszarMiasto
     * @uses IsObszarMiasto::setAdres()
     * @param ObszarAdresowyType[] $adres
     */
    public function __construct(array $adres = array())
    {
        $this
            ->setAdres($adres);
    }
    /**
     * Get adres value
     * @return ObszarAdresowyType[]
     */
    public function getAdres()
    {
        return $this->adres;
    }
    /**
     * Set adres value
     * @param ObszarAdresowyType[] $adres
     * @return IsObszarMiasto
     */
    public function setAdres(array $adres = array())
    {
        $this->adres = $adres;
        return $this;
    }
    /**
     * Add item to adres value
     * @throws \InvalidArgumentException
     * @param ObszarAdresowyType $item
     * @return IsObszarMiasto
     */
    public function addToAdres(ObszarAdresowyType $item)
    {
        $this->adres[] = $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 IsObszarMiasto
     */
    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__;
    }
}
