<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_SearchSegmentsFlight StructType
 * @subpackage Structs
 */
class JP_SearchSegmentsFlight extends AbstractStructBase
{
    /**
     * The SearchSegmentFlight
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentFlight
     */
    public $SearchSegmentFlight;
    /**
     * The FlightSuppliers
     * Meta information 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;
    }
}
