<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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