<?php

namespace Sabre\EnhancedAirBook\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for HotelCode Structs
 * Meta informations extracted from the WSDL
 * - documentation: The code that uniquely identifies a single hotel property. The hotel code is decided between vendors.
 * @subpackage Structs
 */
class HotelCode extends AbstractStructBase
{
    /**
     * The _
     * @var string
     */
    public $_;
    /**
     * The Source
     * Meta informations extracted from the WSDL
     * - documentation: Hold the source of this Hotel Code which could be external application or system
     * @var string
     */
    public $Source;
    /**
     * Constructor method for HotelCode
     * @uses HotelCode::set_()
     * @uses HotelCode::setSource()
     * @param string $_
     * @param string $source
     */
    public function __construct($_ = null, $source = null)
    {
        $this
            ->set_($_)
            ->setSource($source);
    }
    /**
     * Get _ value
     * @return string|null
     */
    public function get_()
    {
        return $this->_;
    }
    /**
     * Set _ value
     * @param string $_
     * @return \Sabre\EnhancedAirBook\Structs\HotelCode
     */
    public function set_($_ = null)
    {
        $this->_ = $_;
        return $this;
    }
    /**
     * Get Source value
     * @return string|null
     */
    public function getSource()
    {
        return $this->Source;
    }
    /**
     * Set Source value
     * @param string $source
     * @return \Sabre\EnhancedAirBook\Structs\HotelCode
     */
    public function setSource($source = null)
    {
        $this->Source = $source;
        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 \Sabre\EnhancedAirBook\Structs\HotelCode
     */
    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__;
    }
}
