<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DomesticLayoverTime Structs
 * Meta informations extracted from the WSDL
 * - documentation: Domestic maximum connecting hours.
 * @subpackage Structs
 */
class DomesticLayoverTime extends AbstractStructBase
{
    /**
     * The Hours
     * Meta informations extracted from the WSDL
     * - use: required
     * @var int
     */
    public $Hours;
    /**
     * Constructor method for DomesticLayoverTime
     * @uses DomesticLayoverTime::setHours()
     * @param int $hours
     */
    public function __construct($hours = null)
    {
        $this
            ->setHours($hours);
    }
    /**
     * Get Hours value
     * @return int
     */
    public function getHours()
    {
        return $this->Hours;
    }
    /**
     * Set Hours value
     * @param int $hours
     * @return \Sabre\BargainFinderMax\Structs\DomesticLayoverTime
     */
    public function setHours($hours = null)
    {
        $this->Hours = $hours;
        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\BargainFinderMax\Structs\DomesticLayoverTime
     */
    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__;
    }
}
