<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_CruiseFlightRoute StructType
 * @subpackage Structs
 */
class JP_CruiseFlightRoute extends AbstractStructBase
{
    /**
     * The Segments
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseSegment
     */
    public $Segments;
    /**
     * Constructor method for JP_CruiseFlightRoute
     * @uses JP_CruiseFlightRoute::setSegments()
     * @param \ArrayType\ArrayOfJP_CruiseSegment $segments
     */
    public function __construct(\ArrayType\ArrayOfJP_CruiseSegment $segments = null)
    {
        $this
            ->setSegments($segments);
    }
    /**
     * Get Segments value
     * @return \ArrayType\ArrayOfJP_CruiseSegment|null
     */
    public function getSegments()
    {
        return $this->Segments;
    }
    /**
     * Set Segments value
     * @param \ArrayType\ArrayOfJP_CruiseSegment $segments
     * @return \StructType\JP_CruiseFlightRoute
     */
    public function setSegments(\ArrayType\ArrayOfJP_CruiseSegment $segments = null)
    {
        $this->Segments = $segments;
        return $this;
    }
}
