<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for StopAirports Structs
 * @subpackage Structs
 */
class StopAirports extends AbstractStructBase
{
    /**
     * The StopAirport
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * @var \Sabre\BargainFinderMax\Structs\StopAirport[]
     */
    public $StopAirport;
    /**
     * Constructor method for StopAirports
     * @uses StopAirports::setStopAirport()
     * @param \Sabre\BargainFinderMax\Structs\StopAirport[] $stopAirport
     */
    public function __construct(array $stopAirport = array())
    {
        $this
            ->setStopAirport($stopAirport);
    }
    /**
     * Get StopAirport value
     * @return \Sabre\BargainFinderMax\Structs\StopAirport[]|null
     */
    public function getStopAirport()
    {
        return $this->StopAirport;
    }
    /**
     * Set StopAirport value
     * @throws \InvalidArgumentException
     * @param \Sabre\BargainFinderMax\Structs\StopAirport[] $stopAirport
     * @return \Sabre\BargainFinderMax\Structs\StopAirports
     */
    public function setStopAirport(array $stopAirport = array())
    {
        $this->StopAirport = $stopAirport;
        return $this;
    }
    /**
     * Add item to StopAirport value
     * @throws \InvalidArgumentException
     * @param \Sabre\BargainFinderMax\Structs\StopAirport $item
     * @return \Sabre\BargainFinderMax\Structs\StopAirports
     */
    public function addToStopAirport(\Sabre\BargainFinderMax\Structs\StopAirport $item)
    {
        $this->StopAirport[] = $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 \Sabre\BargainFinderMax\Structs\StopAirports
     */
    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__;
    }
}
