<?php

namespace dgsoft\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResGlobalInfoType StructType
 * @package Dg
 * @subpackage Structs
 */
class DgResGlobalInfoType extends DgResCommonDetailType
{
    /**
     * The HotelReservationIDs
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID
     */
    public $HotelReservationIDs;
    /**
     * The RoutingHops
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop
     */
    public $RoutingHops;
    /**
     * The Profiles
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo
     */
    public $Profiles;
    /**
     * The BookingRules
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule
     */
    public $BookingRules;
    /**
     * Constructor method for ResGlobalInfoType
     * @uses DgResGlobalInfoType::setHotelReservationIDs()
     * @uses DgResGlobalInfoType::setRoutingHops()
     * @uses DgResGlobalInfoType::setProfiles()
     * @uses DgResGlobalInfoType::setBookingRules()
     * @param \dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID $hotelReservationIDs
     * @param \dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop $routingHops
     * @param \dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo $profiles
     * @param \dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule $bookingRules
     */
    public function __construct(\dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID $hotelReservationIDs = null, \dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop $routingHops = null, \dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo $profiles = null, \dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule $bookingRules = null)
    {
        $this
            ->setHotelReservationIDs($hotelReservationIDs)
            ->setRoutingHops($routingHops)
            ->setProfiles($profiles)
            ->setBookingRules($bookingRules);
    }
    /**
     * Get HotelReservationIDs value
     * @return \dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID|null
     */
    public function getHotelReservationIDs()
    {
        return $this->HotelReservationIDs;
    }
    /**
     * Set HotelReservationIDs value
     * @param \dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID $hotelReservationIDs
     * @return \dgsoft\StructType\DgResGlobalInfoType
     */
    public function setHotelReservationIDs(\dgsoft\ArrayType\DgArrayOfHotelReservationIDsTypeHotelReservationID $hotelReservationIDs = null)
    {
        $this->HotelReservationIDs = $hotelReservationIDs;
        return $this;
    }
    /**
     * Get RoutingHops value
     * @return \dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop|null
     */
    public function getRoutingHops()
    {
        return $this->RoutingHops;
    }
    /**
     * Set RoutingHops value
     * @param \dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop $routingHops
     * @return \dgsoft\StructType\DgResGlobalInfoType
     */
    public function setRoutingHops(\dgsoft\ArrayType\DgArrayOfRoutingHopTypeRoutingHop $routingHops = null)
    {
        $this->RoutingHops = $routingHops;
        return $this;
    }
    /**
     * Get Profiles value
     * @return \dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo|null
     */
    public function getProfiles()
    {
        return $this->Profiles;
    }
    /**
     * Set Profiles value
     * @param \dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo $profiles
     * @return \dgsoft\StructType\DgResGlobalInfoType
     */
    public function setProfiles(\dgsoft\ArrayType\DgArrayOfProfilesTypeProfileInfo $profiles = null)
    {
        $this->Profiles = $profiles;
        return $this;
    }
    /**
     * Get BookingRules value
     * @return \dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule|null
     */
    public function getBookingRules()
    {
        return $this->BookingRules;
    }
    /**
     * Set BookingRules value
     * @param \dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule $bookingRules
     * @return \dgsoft\StructType\DgResGlobalInfoType
     */
    public function setBookingRules(\dgsoft\ArrayType\DgArrayOfBookingRulesTypeBookingRule $bookingRules = null)
    {
        $this->BookingRules = $bookingRules;
        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 \dgsoft\StructType\DgResGlobalInfoType
     */
    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__;
    }
}
