<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_CruiseOptionalElements StructType
 * @subpackage Structs
 */
class JP_CruiseOptionalElements extends AbstractStructBase
{
    /**
     * The CruiseSupplements
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseSupplement
     */
    public $CruiseSupplements;
    /**
     * Constructor method for JP_CruiseOptionalElements
     * @uses JP_CruiseOptionalElements::setCruiseSupplements()
     * @param \ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements
     */
    public function __construct(\ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements = null)
    {
        $this
            ->setCruiseSupplements($cruiseSupplements);
    }
    /**
     * Get CruiseSupplements value
     * @return \ArrayType\ArrayOfJP_CruiseSupplement|null
     */
    public function getCruiseSupplements()
    {
        return $this->CruiseSupplements;
    }
    /**
     * Set CruiseSupplements value
     * @param \ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements
     * @return \StructType\JP_CruiseOptionalElements
     */
    public function setCruiseSupplements(\ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements = null)
    {
        $this->CruiseSupplements = $cruiseSupplements;
        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_CruiseOptionalElements
     */
    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__;
    }
}
