<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_SearchSegmentsItinerary StructType
 * @subpackage Structs
 */
class JP_SearchSegmentsItinerary extends AbstractStructBase
{
    /**
     * The SearchSegmentItinerary
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentItinerary
     */
    public $SearchSegmentItinerary;
    /**
     * The CruiseSuppliers
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseSupplier
     */
    public $CruiseSuppliers;
    /**
     * Constructor method for JP_SearchSegmentsItinerary
     * @uses JP_SearchSegmentsItinerary::setSearchSegmentItinerary()
     * @uses JP_SearchSegmentsItinerary::setCruiseSuppliers()
     * @param \StructType\JP_SearchSegmentItinerary $searchSegmentItinerary
     * @param \ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers
     */
    public function __construct(\StructType\JP_SearchSegmentItinerary $searchSegmentItinerary = null, \ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers = null)
    {
        $this
            ->setSearchSegmentItinerary($searchSegmentItinerary)
            ->setCruiseSuppliers($cruiseSuppliers);
    }
    /**
     * Get SearchSegmentItinerary value
     * @return \StructType\JP_SearchSegmentItinerary|null
     */
    public function getSearchSegmentItinerary()
    {
        return $this->SearchSegmentItinerary;
    }
    /**
     * Set SearchSegmentItinerary value
     * @param \StructType\JP_SearchSegmentItinerary $searchSegmentItinerary
     * @return \StructType\JP_SearchSegmentsItinerary
     */
    public function setSearchSegmentItinerary(\StructType\JP_SearchSegmentItinerary $searchSegmentItinerary = null)
    {
        $this->SearchSegmentItinerary = $searchSegmentItinerary;
        return $this;
    }
    /**
     * Get CruiseSuppliers value
     * @return \ArrayType\ArrayOfJP_CruiseSupplier|null
     */
    public function getCruiseSuppliers()
    {
        return $this->CruiseSuppliers;
    }
    /**
     * Set CruiseSuppliers value
     * @param \ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers
     * @return \StructType\JP_SearchSegmentsItinerary
     */
    public function setCruiseSuppliers(\ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers = null)
    {
        $this->CruiseSuppliers = $cruiseSuppliers;
        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_SearchSegmentsItinerary
     */
    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__;
    }
}
