<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_CruiseAdditionalElements StructType
 * @subpackage Structs
 */
class JP_CruiseAdditionalElements extends AbstractStructBase
{
    /**
     * The Fees
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfString2
     */
    public $Fees;
    /**
     * The Components
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseComponent
     */
    public $Components;
    /**
     * The Promotions
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruisePromotion
     */
    public $Promotions;
    /**
     * The CruiseSupplements
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_CruiseSupplement
     */
    public $CruiseSupplements;
    /**
     * Constructor method for JP_CruiseAdditionalElements
     * @uses JP_CruiseAdditionalElements::setFees()
     * @uses JP_CruiseAdditionalElements::setComponents()
     * @uses JP_CruiseAdditionalElements::setPromotions()
     * @uses JP_CruiseAdditionalElements::setCruiseSupplements()
     * @param \ArrayType\ArrayOfString2 $fees
     * @param \ArrayType\ArrayOfJP_CruiseComponent $components
     * @param \ArrayType\ArrayOfJP_CruisePromotion $promotions
     * @param \ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements
     */
    public function __construct(\ArrayType\ArrayOfString2 $fees = null, \ArrayType\ArrayOfJP_CruiseComponent $components = null, \ArrayType\ArrayOfJP_CruisePromotion $promotions = null, \ArrayType\ArrayOfJP_CruiseSupplement $cruiseSupplements = null)
    {
        $this
            ->setFees($fees)
            ->setComponents($components)
            ->setPromotions($promotions)
            ->setCruiseSupplements($cruiseSupplements);
    }
    /**
     * Get Fees value
     * @return \ArrayType\ArrayOfString2|null
     */
    public function getFees()
    {
        return $this->Fees;
    }
    /**
     * Set Fees value
     * @param \ArrayType\ArrayOfString2 $fees
     * @return \StructType\JP_CruiseAdditionalElements
     */
    public function setFees(\ArrayType\ArrayOfString2 $fees = null)
    {
        $this->Fees = $fees;
        return $this;
    }
    /**
     * Get Components value
     * @return \ArrayType\ArrayOfJP_CruiseComponent|null
     */
    public function getComponents()
    {
        return $this->Components;
    }
    /**
     * Set Components value
     * @param \ArrayType\ArrayOfJP_CruiseComponent $components
     * @return \StructType\JP_CruiseAdditionalElements
     */
    public function setComponents(\ArrayType\ArrayOfJP_CruiseComponent $components = null)
    {
        $this->Components = $components;
        return $this;
    }
    /**
     * Get Promotions value
     * @return \ArrayType\ArrayOfJP_CruisePromotion|null
     */
    public function getPromotions()
    {
        return $this->Promotions;
    }
    /**
     * Set Promotions value
     * @param \ArrayType\ArrayOfJP_CruisePromotion $promotions
     * @return \StructType\JP_CruiseAdditionalElements
     */
    public function setPromotions(\ArrayType\ArrayOfJP_CruisePromotion $promotions = null)
    {
        $this->Promotions = $promotions;
        return $this;
    }
    /**
     * 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_CruiseAdditionalElements
     */
    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_CruiseAdditionalElements
     */
    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__;
    }
}
