<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for WebUpdateSepetRequest StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:WebUpdateSepetRequest
 * @subpackage Structs
 */
class WebUpdateSepetRequest extends AbstractStructBase
{
    /**
     * The Adet
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var float
     */
    public $Adet;
    /**
     * The AdetGuncelle
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $AdetGuncelle;
    /**
     * The KampanyaID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $KampanyaID;
    /**
     * The SepetID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $SepetID;
    /**
     * The SepetUrunID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $SepetUrunID;
    /**
     * The SepettenCikar
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $SepettenCikar;
    /**
     * The UrunID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $UrunID;
    /**
     * Constructor method for WebUpdateSepetRequest
     * @uses WebUpdateSepetRequest::setAdet()
     * @uses WebUpdateSepetRequest::setAdetGuncelle()
     * @uses WebUpdateSepetRequest::setKampanyaID()
     * @uses WebUpdateSepetRequest::setSepetID()
     * @uses WebUpdateSepetRequest::setSepetUrunID()
     * @uses WebUpdateSepetRequest::setSepettenCikar()
     * @uses WebUpdateSepetRequest::setUrunID()
     * @param float $adet
     * @param bool $adetGuncelle
     * @param int $kampanyaID
     * @param int $sepetID
     * @param int $sepetUrunID
     * @param bool $sepettenCikar
     * @param int $urunID
     */
    public function __construct($adet = null, $adetGuncelle = null, $kampanyaID = null, $sepetID = null, $sepetUrunID = null, $sepettenCikar = null, $urunID = null)
    {
        $this
            ->setAdet($adet)
            ->setAdetGuncelle($adetGuncelle)
            ->setKampanyaID($kampanyaID)
            ->setSepetID($sepetID)
            ->setSepetUrunID($sepetUrunID)
            ->setSepettenCikar($sepettenCikar)
            ->setUrunID($urunID);
    }
    /**
     * Get Adet value
     * @return float|null
     */
    public function getAdet()
    {
        return $this->Adet;
    }
    /**
     * Set Adet value
     * @param float $adet
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setAdet($adet = null)
    {
        // validation for constraint: float
        if (!is_null($adet) && !(is_float($adet) || is_numeric($adet))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($adet, true), gettype($adet)), __LINE__);
        }
        $this->Adet = $adet;
        return $this;
    }
    /**
     * Get AdetGuncelle value
     * @return bool|null
     */
    public function getAdetGuncelle()
    {
        return $this->AdetGuncelle;
    }
    /**
     * Set AdetGuncelle value
     * @param bool $adetGuncelle
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setAdetGuncelle($adetGuncelle = null)
    {
        // validation for constraint: boolean
        if (!is_null($adetGuncelle) && !is_bool($adetGuncelle)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($adetGuncelle, true), gettype($adetGuncelle)), __LINE__);
        }
        $this->AdetGuncelle = $adetGuncelle;
        return $this;
    }
    /**
     * Get KampanyaID value
     * @return int|null
     */
    public function getKampanyaID()
    {
        return $this->KampanyaID;
    }
    /**
     * Set KampanyaID value
     * @param int $kampanyaID
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setKampanyaID($kampanyaID = null)
    {
        // validation for constraint: int
        if (!is_null($kampanyaID) && !(is_int($kampanyaID) || ctype_digit($kampanyaID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($kampanyaID, true), gettype($kampanyaID)), __LINE__);
        }
        $this->KampanyaID = $kampanyaID;
        return $this;
    }
    /**
     * Get SepetID value
     * @return int|null
     */
    public function getSepetID()
    {
        return $this->SepetID;
    }
    /**
     * Set SepetID value
     * @param int $sepetID
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setSepetID($sepetID = null)
    {
        // validation for constraint: int
        if (!is_null($sepetID) && !(is_int($sepetID) || ctype_digit($sepetID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($sepetID, true), gettype($sepetID)), __LINE__);
        }
        $this->SepetID = $sepetID;
        return $this;
    }
    /**
     * Get SepetUrunID value
     * @return int|null
     */
    public function getSepetUrunID()
    {
        return $this->SepetUrunID;
    }
    /**
     * Set SepetUrunID value
     * @param int $sepetUrunID
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setSepetUrunID($sepetUrunID = null)
    {
        // validation for constraint: int
        if (!is_null($sepetUrunID) && !(is_int($sepetUrunID) || ctype_digit($sepetUrunID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($sepetUrunID, true), gettype($sepetUrunID)), __LINE__);
        }
        $this->SepetUrunID = $sepetUrunID;
        return $this;
    }
    /**
     * Get SepettenCikar value
     * @return bool|null
     */
    public function getSepettenCikar()
    {
        return $this->SepettenCikar;
    }
    /**
     * Set SepettenCikar value
     * @param bool $sepettenCikar
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setSepettenCikar($sepettenCikar = null)
    {
        // validation for constraint: boolean
        if (!is_null($sepettenCikar) && !is_bool($sepettenCikar)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($sepettenCikar, true), gettype($sepettenCikar)), __LINE__);
        }
        $this->SepettenCikar = $sepettenCikar;
        return $this;
    }
    /**
     * Get UrunID value
     * @return int|null
     */
    public function getUrunID()
    {
        return $this->UrunID;
    }
    /**
     * Set UrunID value
     * @param int $urunID
     * @return \SelectSiparis\WebUpdateSepetRequest
     */
    public function setUrunID($urunID = null)
    {
        // validation for constraint: int
        if (!is_null($urunID) && !(is_int($urunID) || ctype_digit($urunID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($urunID, true), gettype($urunID)), __LINE__);
        }
        $this->UrunID = $urunID;
        return $this;
    }
}
