<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for WebSiparisUrunEkSecenekOzellik StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:WebSiparisUrunEkSecenekOzellik
 * @subpackage Structs
 */
class WebSiparisUrunEkSecenekOzellik extends AbstractStructBase
{
    /**
     * The ID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $ID;
    /**
     * The Tanim
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Tanim;
    /**
     * The TipID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $TipID;
    /**
     * Constructor method for WebSiparisUrunEkSecenekOzellik
     * @uses WebSiparisUrunEkSecenekOzellik::setID()
     * @uses WebSiparisUrunEkSecenekOzellik::setTanim()
     * @uses WebSiparisUrunEkSecenekOzellik::setTipID()
     * @param int $iD
     * @param string $tanim
     * @param int $tipID
     */
    public function __construct($iD = null, $tanim = null, $tipID = null)
    {
        $this
            ->setID($iD)
            ->setTanim($tanim)
            ->setTipID($tipID);
    }
    /**
     * Get ID value
     * @return int|null
     */
    public function getID()
    {
        return $this->ID;
    }
    /**
     * Set ID value
     * @param int $iD
     * @return \SelectSiparis\WebSiparisUrunEkSecenekOzellik
     */
    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;
    }
    /**
     * Get Tanim value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getTanim()
    {
        return isset($this->Tanim) ? $this->Tanim : null;
    }
    /**
     * Set Tanim value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $tanim
     * @return \SelectSiparis\WebSiparisUrunEkSecenekOzellik
     */
    public function setTanim($tanim = null)
    {
        // validation for constraint: string
        if (!is_null($tanim) && !is_string($tanim)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tanim, true), gettype($tanim)), __LINE__);
        }
        if (is_null($tanim) || (is_array($tanim) && empty($tanim))) {
            unset($this->Tanim);
        } else {
            $this->Tanim = $tanim;
        }
        return $this;
    }
    /**
     * Get TipID value
     * @return int|null
     */
    public function getTipID()
    {
        return $this->TipID;
    }
    /**
     * Set TipID value
     * @param int $tipID
     * @return \SelectSiparis\WebSiparisUrunEkSecenekOzellik
     */
    public function setTipID($tipID = null)
    {
        // validation for constraint: int
        if (!is_null($tipID) && !(is_int($tipID) || ctype_digit($tipID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($tipID, true), gettype($tipID)), __LINE__);
        }
        $this->TipID = $tipID;
        return $this;
    }
}
