<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AlarmMessageResult_V5 StructType
 * @subpackage Structs
 */
class AlarmMessageResult_V5 extends AlarmMessageResult_V4
{
    /**
     * The ModificationID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $ModificationID;
    /**
     * Constructor method for AlarmMessageResult_V5
     * @uses AlarmMessageResult_V5::setModificationID()
     * @param int $modificationID
     */
    public function __construct($modificationID = null)
    {
        $this
            ->setModificationID($modificationID);
    }
    /**
     * Get ModificationID value
     * @return int
     */
    public function getModificationID()
    {
        return $this->ModificationID;
    }
    /**
     * Set ModificationID value
     * @param int $modificationID
     * @return \StructType\AlarmMessageResult_V5
     */
    public function setModificationID($modificationID = null)
    {
        // validation for constraint: int
        if (!is_null($modificationID) && !(is_int($modificationID) || ctype_digit($modificationID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($modificationID, true), gettype($modificationID)), __LINE__);
        }
        $this->ModificationID = $modificationID;
        return $this;
    }
}
