<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_HotelAdditionalElements StructType
 * @subpackage Structs
 */
class JP_HotelAdditionalElements extends AbstractStructBase
{
    /**
     * The HotelSupplements
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_HotelAdditionalElement
     */
    public $HotelSupplements;
    /**
     * The HotelOffers
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_HotelAdditionalElement1
     */
    public $HotelOffers;
    /**
     * Constructor method for JP_HotelAdditionalElements
     * @uses JP_HotelAdditionalElements::setHotelSupplements()
     * @uses JP_HotelAdditionalElements::setHotelOffers()
     * @param \ArrayType\ArrayOfJP_HotelAdditionalElement $hotelSupplements
     * @param \ArrayType\ArrayOfJP_HotelAdditionalElement1 $hotelOffers
     */
    public function __construct(\ArrayType\ArrayOfJP_HotelAdditionalElement $hotelSupplements = null, \ArrayType\ArrayOfJP_HotelAdditionalElement1 $hotelOffers = null)
    {
        $this
            ->setHotelSupplements($hotelSupplements)
            ->setHotelOffers($hotelOffers);
    }
    /**
     * Get HotelSupplements value
     * @return \ArrayType\ArrayOfJP_HotelAdditionalElement|null
     */
    public function getHotelSupplements()
    {
        return $this->HotelSupplements;
    }
    /**
     * Set HotelSupplements value
     * @param \ArrayType\ArrayOfJP_HotelAdditionalElement $hotelSupplements
     * @return \StructType\JP_HotelAdditionalElements
     */
    public function setHotelSupplements(\ArrayType\ArrayOfJP_HotelAdditionalElement $hotelSupplements = null)
    {
        $this->HotelSupplements = $hotelSupplements;
        return $this;
    }
    /**
     * Get HotelOffers value
     * @return \ArrayType\ArrayOfJP_HotelAdditionalElement1|null
     */
    public function getHotelOffers()
    {
        return $this->HotelOffers;
    }
    /**
     * Set HotelOffers value
     * @param \ArrayType\ArrayOfJP_HotelAdditionalElement1 $hotelOffers
     * @return \StructType\JP_HotelAdditionalElements
     */
    public function setHotelOffers(\ArrayType\ArrayOfJP_HotelAdditionalElement1 $hotelOffers = null)
    {
        $this->HotelOffers = $hotelOffers;
        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_HotelAdditionalElements
     */
    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__;
    }
}
