<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ExtendedPayment Structs
 * @subpackage Structs
 */
class ExtendedPayment extends AbstractStructBase
{
    /**
     * The NumMonths
     * Meta informations extracted from the WSDL
     * - use: required
     * @var int
     */
    public $NumMonths;
    /**
     * Constructor method for ExtendedPayment
     * @uses ExtendedPayment::setNumMonths()
     * @param int $numMonths
     */
    public function __construct($numMonths = null)
    {
        $this
            ->setNumMonths($numMonths);
    }
    /**
     * Get NumMonths value
     * @return int
     */
    public function getNumMonths()
    {
        return $this->NumMonths;
    }
    /**
     * Set NumMonths value
     * @param int $numMonths
     * @return \Sabre\OTAAirPrice\Structs\ExtendedPayment
     */
    public function setNumMonths($numMonths = null)
    {
        $this->NumMonths = $numMonths;
        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\OTAAirPrice\Structs\ExtendedPayment
     */
    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__;
    }
}
