<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_SearchSegmentsCruise StructType
 * @subpackage Structs
 */
class JP_SearchSegmentsCruise extends AbstractStructBase
{
    /**
     * The SearchSegmentCruise
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_SearchSegmentCruise
     */
    public $SearchSegmentCruise;
    /**
     * The CruiseSuppliers
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseSupplier
     */
    public $CruiseSuppliers;
    /**
     * Constructor method for JP_SearchSegmentsCruise
     * @uses JP_SearchSegmentsCruise::setSearchSegmentCruise()
     * @uses JP_SearchSegmentsCruise::setCruiseSuppliers()
     * @param \StructType\JP_SearchSegmentCruise $searchSegmentCruise
     * @param \ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers
     */
    public function __construct(\StructType\JP_SearchSegmentCruise $searchSegmentCruise = null, \ArrayType\ArrayOfJP_CruiseSupplier $cruiseSuppliers = null)
    {
        $this
            ->setSearchSegmentCruise($searchSegmentCruise)
            ->setCruiseSuppliers($cruiseSuppliers);
    }
    /**
     * Get SearchSegmentCruise value
     * @return \StructType\JP_SearchSegmentCruise|null
     */
    public function getSearchSegmentCruise()
    {
        return $this->SearchSegmentCruise;
    }
    /**
     * Set SearchSegmentCruise value
     * @param \StructType\JP_SearchSegmentCruise $searchSegmentCruise
     * @return \StructType\JP_SearchSegmentsCruise
     */
    public function setSearchSegmentCruise(\StructType\JP_SearchSegmentCruise $searchSegmentCruise = null)
    {
        $this->SearchSegmentCruise = $searchSegmentCruise;
        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_SearchSegmentsCruise
     */
    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_SearchSegmentsCruise
     */
    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__;
    }
}
