<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for LengthOfStay Structs
 * Meta informations extracted from the WSDL
 * - documentation: Amount of days between previous leg's DEPARTURE date and current leg's DEPARTURE date. NOTE: Allowed only in 2nd or further "OriginDestinationInformation". Example: for outbound departing on Jan 20, LengthOfStay/@Days="2" means
 * inbound departing on Jan 22.
 * @subpackage Structs
 */
class LengthOfStay extends AbstractStructBase
{
    /**
     * The Days
     * Meta informations extracted from the WSDL
     * - use: required
     * @var int
     */
    public $Days;
    /**
     * Constructor method for LengthOfStay
     * @uses LengthOfStay::setDays()
     * @param int $days
     */
    public function __construct($days = null)
    {
        $this
            ->setDays($days);
    }
    /**
     * Get Days value
     * @return int
     */
    public function getDays()
    {
        return $this->Days;
    }
    /**
     * Set Days value
     * @param int $days
     * @return \Sabre\BargainFinderMax\Structs\LengthOfStay
     */
    public function setDays($days = null)
    {
        $this->Days = $days;
        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\LengthOfStay
     */
    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__;
    }
}
