<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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