<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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