<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for isMiejscowa StructType
 * @subpackage Structs
 */
class IsMiejscowa extends AbstractStructBase
{
    /**
     * The trasaRequest
     * Meta informations extracted from the WSDL
     * - maxOccurs: 500
     * - minOccurs: 1
     * @var TrasaRequestType[]
     */
    public $trasaRequest;
    /**
     * Constructor method for isMiejscowa
     * @uses IsMiejscowa::setTrasaRequest()
     * @param TrasaRequestType[] $trasaRequest
     */
    public function __construct(array $trasaRequest = array())
    {
        $this
            ->setTrasaRequest($trasaRequest);
    }
    /**
     * Get trasaRequest value
     * @return TrasaRequestType[]
     */
    public function getTrasaRequest()
    {
        return $this->trasaRequest;
    }
    /**
     * Set trasaRequest value
     * @throws \InvalidArgumentException
     * @param TrasaRequestType[] $trasaRequest
     * @return IsMiejscowa
     */
    public function setTrasaRequest(array $trasaRequest = array())
    {
        $this->trasaRequest = $trasaRequest;
        return $this;
    }
    /**
     * Add item to trasaRequest value
     * @throws \InvalidArgumentException
     * @param TrasaRequestType $item
     * @return IsMiejscowa
     */
    public function addToTrasaRequest(TrasaRequestType $item)
    {
        $this->trasaRequest[] = $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 IsMiejscowa
     */
    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__;
    }
}
