<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLogicalSeatId-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetLogicalSeatId-Response
 * @subpackage Structs
 */
class GetLogicalSeatId_Response extends ExtensibleDataContract
{
    /**
     * The NextLogicalSeatId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $NextLogicalSeatId;
    /**
     * Constructor method for GetLogicalSeatId-Response
     * @uses GetLogicalSeatId_Response::setNextLogicalSeatId()
     * @param int $nextLogicalSeatId
     */
    public function __construct($nextLogicalSeatId = null)
    {
        $this
            ->setNextLogicalSeatId($nextLogicalSeatId);
    }
    /**
     * Get NextLogicalSeatId value
     * @return int|null
     */
    public function getNextLogicalSeatId()
    {
        return $this->NextLogicalSeatId;
    }
    /**
     * Set NextLogicalSeatId value
     * @param int $nextLogicalSeatId
     * @return \patest\StructType\GetLogicalSeatId_Response
     */
    public function setNextLogicalSeatId($nextLogicalSeatId = null)
    {
        // validation for constraint: int
        if (!is_null($nextLogicalSeatId) && !(is_int($nextLogicalSeatId) || ctype_digit($nextLogicalSeatId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($nextLogicalSeatId, true), gettype($nextLogicalSeatId)), __LINE__);
        }
        $this->NextLogicalSeatId = $nextLogicalSeatId;
        return $this;
    }
}
