<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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