<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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