<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JPSOAP_HotelRatePlanBoardUpgradeOffer StructType
 * @subpackage Structs
 */
class JPSOAP_HotelRatePlanBoardUpgradeOffer extends AbstractStructBase
{
    /**
     * The BoardCodePay
     * Meta information extracted from the WSDL
     * - use: required
     * @var int
     */
    public $BoardCodePay;
    /**
     * The BoardCodeGet
     * Meta information extracted from the WSDL
     * - use: required
     * @var int
     */
    public $BoardCodeGet;
    /**
     * Constructor method for JPSOAP_HotelRatePlanBoardUpgradeOffer
     * @uses JPSOAP_HotelRatePlanBoardUpgradeOffer::setBoardCodePay()
     * @uses JPSOAP_HotelRatePlanBoardUpgradeOffer::setBoardCodeGet()
     * @param int $boardCodePay
     * @param int $boardCodeGet
     */
    public function __construct($boardCodePay = null, $boardCodeGet = null)
    {
        $this
            ->setBoardCodePay($boardCodePay)
            ->setBoardCodeGet($boardCodeGet);
    }
    /**
     * Get BoardCodePay value
     * @return int
     */
    public function getBoardCodePay()
    {
        return $this->BoardCodePay;
    }
    /**
     * Set BoardCodePay value
     * @param int $boardCodePay
     * @return \StructType\JPSOAP_HotelRatePlanBoardUpgradeOffer
     */
    public function setBoardCodePay($boardCodePay = null)
    {
        // validation for constraint: int
        if (!is_null($boardCodePay) && !(is_int($boardCodePay) || ctype_digit($boardCodePay))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($boardCodePay, true), gettype($boardCodePay)), __LINE__);
        }
        $this->BoardCodePay = $boardCodePay;
        return $this;
    }
    /**
     * Get BoardCodeGet value
     * @return int
     */
    public function getBoardCodeGet()
    {
        return $this->BoardCodeGet;
    }
    /**
     * Set BoardCodeGet value
     * @param int $boardCodeGet
     * @return \StructType\JPSOAP_HotelRatePlanBoardUpgradeOffer
     */
    public function setBoardCodeGet($boardCodeGet = null)
    {
        // validation for constraint: int
        if (!is_null($boardCodeGet) && !(is_int($boardCodeGet) || ctype_digit($boardCodeGet))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($boardCodeGet, true), gettype($boardCodeGet)), __LINE__);
        }
        $this->BoardCodeGet = $boardCodeGet;
        return $this;
    }
}
