<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_SearchSegmentsFlight StructType
 * @subpackage Structs
 */
class JP_SearchSegmentsFlight extends AbstractStructBase
{
    /**
     * The SearchSegmentFlight
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentFlight
     */
    public $SearchSegmentFlight;
    /**
     * The FlightSuppliers
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_FlightSupplier
     */
    public $FlightSuppliers;
    /**
     * Constructor method for JP_SearchSegmentsFlight
     * @uses JP_SearchSegmentsFlight::setSearchSegmentFlight()
     * @uses JP_SearchSegmentsFlight::setFlightSuppliers()
     * @param \StructType\JP_SearchSegmentFlight $searchSegmentFlight
     * @param \ArrayType\ArrayOfJP_FlightSupplier $flightSuppliers
     */
    public function __construct(\StructType\JP_SearchSegmentFlight $searchSegmentFlight = null, \ArrayType\ArrayOfJP_FlightSupplier $flightSuppliers = null)
    {
        $this
            ->setSearchSegmentFlight($searchSegmentFlight)
            ->setFlightSuppliers($flightSuppliers);
    }
    /**
     * Get SearchSegmentFlight value
     * @return \StructType\JP_SearchSegmentFlight|null
     */
    public function getSearchSegmentFlight()
    {
        return $this->SearchSegmentFlight;
    }
    /**
     * Set SearchSegmentFlight value
     * @param \StructType\JP_SearchSegmentFlight $searchSegmentFlight
     * @return \StructType\JP_SearchSegmentsFlight
     */
    public function setSearchSegmentFlight(\StructType\JP_SearchSegmentFlight $searchSegmentFlight = null)
    {
        $this->SearchSegmentFlight = $searchSegmentFlight;
        return $this;
    }
    /**
     * Get FlightSuppliers value
     * @return \ArrayType\ArrayOfJP_FlightSupplier|null
     */
    public function getFlightSuppliers()
    {
        return $this->FlightSuppliers;
    }
    /**
     * Set FlightSuppliers value
     * @param \ArrayType\ArrayOfJP_FlightSupplier $flightSuppliers
     * @return \StructType\JP_SearchSegmentsFlight
     */
    public function setFlightSuppliers(\ArrayType\ArrayOfJP_FlightSupplier $flightSuppliers = null)
    {
        $this->FlightSuppliers = $flightSuppliers;
        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 \StructType\JP_SearchSegmentsFlight
     */
    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__;
    }
}
