<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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