<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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