<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SaveSiparisKargoPaket StructType
 * @subpackage Structs
 */
class SaveSiparisKargoPaket extends AbstractStructBase
{
    /**
     * The UyeKodu
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $UyeKodu;
    /**
     * The SiparisID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $SiparisID;
    /**
     * The SiparisUrunDurumID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $SiparisUrunDurumID;
    /**
     * The KargoEntegrasyonID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $KargoEntegrasyonID;
    /**
     * The Urunler
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \SelectSiparis\ArrayOfint
     */
    public $Urunler;
    /**
     * The KargoTakipNo
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $KargoTakipNo;
    /**
     * The KontrolEtme
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $KontrolEtme;
    /**
     * The MailGonder
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $MailGonder;
    /**
     * The SmsGonder
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $SmsGonder;
    /**
     * The BarkodBilgisi
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $BarkodBilgisi;
    /**
     * The PaketID
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $PaketID;
    /**
     * The KargoTakipLink
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $KargoTakipLink;
    /**
     * The KargoTakipLinkGoster
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $KargoTakipLinkGoster;
    /**
     * Constructor method for SaveSiparisKargoPaket
     * @uses SaveSiparisKargoPaket::setUyeKodu()
     * @uses SaveSiparisKargoPaket::setSiparisID()
     * @uses SaveSiparisKargoPaket::setSiparisUrunDurumID()
     * @uses SaveSiparisKargoPaket::setKargoEntegrasyonID()
     * @uses SaveSiparisKargoPaket::setUrunler()
     * @uses SaveSiparisKargoPaket::setKargoTakipNo()
     * @uses SaveSiparisKargoPaket::setKontrolEtme()
     * @uses SaveSiparisKargoPaket::setMailGonder()
     * @uses SaveSiparisKargoPaket::setSmsGonder()
     * @uses SaveSiparisKargoPaket::setBarkodBilgisi()
     * @uses SaveSiparisKargoPaket::setPaketID()
     * @uses SaveSiparisKargoPaket::setKargoTakipLink()
     * @uses SaveSiparisKargoPaket::setKargoTakipLinkGoster()
     * @param string $uyeKodu
     * @param int $siparisID
     * @param int $siparisUrunDurumID
     * @param int $kargoEntegrasyonID
     * @param \SelectSiparis\ArrayOfint $urunler
     * @param string $kargoTakipNo
     * @param bool $kontrolEtme
     * @param bool $mailGonder
     * @param bool $smsGonder
     * @param string $barkodBilgisi
     * @param int $paketID
     * @param string $kargoTakipLink
     * @param bool $kargoTakipLinkGoster
     */
    public function __construct($uyeKodu = null, $siparisID = null, $siparisUrunDurumID = null, $kargoEntegrasyonID = null, \SelectSiparis\ArrayOfint $urunler = null, $kargoTakipNo = null, $kontrolEtme = null, $mailGonder = null, $smsGonder = null, $barkodBilgisi = null, $paketID = null, $kargoTakipLink = null, $kargoTakipLinkGoster = null)
    {
        $this
            ->setUyeKodu($uyeKodu)
            ->setSiparisID($siparisID)
            ->setSiparisUrunDurumID($siparisUrunDurumID)
            ->setKargoEntegrasyonID($kargoEntegrasyonID)
            ->setUrunler($urunler)
            ->setKargoTakipNo($kargoTakipNo)
            ->setKontrolEtme($kontrolEtme)
            ->setMailGonder($mailGonder)
            ->setSmsGonder($smsGonder)
            ->setBarkodBilgisi($barkodBilgisi)
            ->setPaketID($paketID)
            ->setKargoTakipLink($kargoTakipLink)
            ->setKargoTakipLinkGoster($kargoTakipLinkGoster);
    }
    /**
     * Get UyeKodu 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 getUyeKodu()
    {
        return isset($this->UyeKodu) ? $this->UyeKodu : null;
    }
    /**
     * Set UyeKodu 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 $uyeKodu
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setUyeKodu($uyeKodu = null)
    {
        // validation for constraint: string
        if (!is_null($uyeKodu) && !is_string($uyeKodu)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($uyeKodu, true), gettype($uyeKodu)), __LINE__);
        }
        if (is_null($uyeKodu) || (is_array($uyeKodu) && empty($uyeKodu))) {
            unset($this->UyeKodu);
        } else {
            $this->UyeKodu = $uyeKodu;
        }
        return $this;
    }
    /**
     * Get SiparisID value
     * @return int|null
     */
    public function getSiparisID()
    {
        return $this->SiparisID;
    }
    /**
     * Set SiparisID value
     * @param int $siparisID
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setSiparisID($siparisID = null)
    {
        // validation for constraint: int
        if (!is_null($siparisID) && !(is_int($siparisID) || ctype_digit($siparisID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($siparisID, true), gettype($siparisID)), __LINE__);
        }
        $this->SiparisID = $siparisID;
        return $this;
    }
    /**
     * Get SiparisUrunDurumID value
     * @return int|null
     */
    public function getSiparisUrunDurumID()
    {
        return $this->SiparisUrunDurumID;
    }
    /**
     * Set SiparisUrunDurumID value
     * @param int $siparisUrunDurumID
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setSiparisUrunDurumID($siparisUrunDurumID = null)
    {
        // validation for constraint: int
        if (!is_null($siparisUrunDurumID) && !(is_int($siparisUrunDurumID) || ctype_digit($siparisUrunDurumID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($siparisUrunDurumID, true), gettype($siparisUrunDurumID)), __LINE__);
        }
        $this->SiparisUrunDurumID = $siparisUrunDurumID;
        return $this;
    }
    /**
     * Get KargoEntegrasyonID value
     * @return int|null
     */
    public function getKargoEntegrasyonID()
    {
        return $this->KargoEntegrasyonID;
    }
    /**
     * Set KargoEntegrasyonID value
     * @param int $kargoEntegrasyonID
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setKargoEntegrasyonID($kargoEntegrasyonID = null)
    {
        // validation for constraint: int
        if (!is_null($kargoEntegrasyonID) && !(is_int($kargoEntegrasyonID) || ctype_digit($kargoEntegrasyonID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($kargoEntegrasyonID, true), gettype($kargoEntegrasyonID)), __LINE__);
        }
        $this->KargoEntegrasyonID = $kargoEntegrasyonID;
        return $this;
    }
    /**
     * Get Urunler 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 \SelectSiparis\ArrayOfint|null
     */
    public function getUrunler()
    {
        return isset($this->Urunler) ? $this->Urunler : null;
    }
    /**
     * Set Urunler 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 \SelectSiparis\ArrayOfint $urunler
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setUrunler(\SelectSiparis\ArrayOfint $urunler = null)
    {
        if (is_null($urunler) || (is_array($urunler) && empty($urunler))) {
            unset($this->Urunler);
        } else {
            $this->Urunler = $urunler;
        }
        return $this;
    }
    /**
     * Get KargoTakipNo 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 getKargoTakipNo()
    {
        return isset($this->KargoTakipNo) ? $this->KargoTakipNo : null;
    }
    /**
     * Set KargoTakipNo 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 $kargoTakipNo
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setKargoTakipNo($kargoTakipNo = null)
    {
        // validation for constraint: string
        if (!is_null($kargoTakipNo) && !is_string($kargoTakipNo)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($kargoTakipNo, true), gettype($kargoTakipNo)), __LINE__);
        }
        if (is_null($kargoTakipNo) || (is_array($kargoTakipNo) && empty($kargoTakipNo))) {
            unset($this->KargoTakipNo);
        } else {
            $this->KargoTakipNo = $kargoTakipNo;
        }
        return $this;
    }
    /**
     * Get KontrolEtme value
     * @return bool|null
     */
    public function getKontrolEtme()
    {
        return $this->KontrolEtme;
    }
    /**
     * Set KontrolEtme value
     * @param bool $kontrolEtme
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setKontrolEtme($kontrolEtme = null)
    {
        // validation for constraint: boolean
        if (!is_null($kontrolEtme) && !is_bool($kontrolEtme)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($kontrolEtme, true), gettype($kontrolEtme)), __LINE__);
        }
        $this->KontrolEtme = $kontrolEtme;
        return $this;
    }
    /**
     * Get MailGonder value
     * @return bool|null
     */
    public function getMailGonder()
    {
        return $this->MailGonder;
    }
    /**
     * Set MailGonder value
     * @param bool $mailGonder
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setMailGonder($mailGonder = null)
    {
        // validation for constraint: boolean
        if (!is_null($mailGonder) && !is_bool($mailGonder)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($mailGonder, true), gettype($mailGonder)), __LINE__);
        }
        $this->MailGonder = $mailGonder;
        return $this;
    }
    /**
     * Get SmsGonder value
     * @return bool|null
     */
    public function getSmsGonder()
    {
        return $this->SmsGonder;
    }
    /**
     * Set SmsGonder value
     * @param bool $smsGonder
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setSmsGonder($smsGonder = null)
    {
        // validation for constraint: boolean
        if (!is_null($smsGonder) && !is_bool($smsGonder)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($smsGonder, true), gettype($smsGonder)), __LINE__);
        }
        $this->SmsGonder = $smsGonder;
        return $this;
    }
    /**
     * Get BarkodBilgisi 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 getBarkodBilgisi()
    {
        return isset($this->BarkodBilgisi) ? $this->BarkodBilgisi : null;
    }
    /**
     * Set BarkodBilgisi 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 $barkodBilgisi
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setBarkodBilgisi($barkodBilgisi = null)
    {
        // validation for constraint: string
        if (!is_null($barkodBilgisi) && !is_string($barkodBilgisi)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($barkodBilgisi, true), gettype($barkodBilgisi)), __LINE__);
        }
        if (is_null($barkodBilgisi) || (is_array($barkodBilgisi) && empty($barkodBilgisi))) {
            unset($this->BarkodBilgisi);
        } else {
            $this->BarkodBilgisi = $barkodBilgisi;
        }
        return $this;
    }
    /**
     * Get PaketID value
     * @return int|null
     */
    public function getPaketID()
    {
        return $this->PaketID;
    }
    /**
     * Set PaketID value
     * @param int $paketID
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setPaketID($paketID = null)
    {
        // validation for constraint: int
        if (!is_null($paketID) && !(is_int($paketID) || ctype_digit($paketID))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($paketID, true), gettype($paketID)), __LINE__);
        }
        $this->PaketID = $paketID;
        return $this;
    }
    /**
     * Get KargoTakipLink 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 getKargoTakipLink()
    {
        return isset($this->KargoTakipLink) ? $this->KargoTakipLink : null;
    }
    /**
     * Set KargoTakipLink 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 $kargoTakipLink
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setKargoTakipLink($kargoTakipLink = null)
    {
        // validation for constraint: string
        if (!is_null($kargoTakipLink) && !is_string($kargoTakipLink)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($kargoTakipLink, true), gettype($kargoTakipLink)), __LINE__);
        }
        if (is_null($kargoTakipLink) || (is_array($kargoTakipLink) && empty($kargoTakipLink))) {
            unset($this->KargoTakipLink);
        } else {
            $this->KargoTakipLink = $kargoTakipLink;
        }
        return $this;
    }
    /**
     * Get KargoTakipLinkGoster value
     * @return bool|null
     */
    public function getKargoTakipLinkGoster()
    {
        return $this->KargoTakipLinkGoster;
    }
    /**
     * Set KargoTakipLinkGoster value
     * @param bool $kargoTakipLinkGoster
     * @return \SelectSiparis\SaveSiparisKargoPaket
     */
    public function setKargoTakipLinkGoster($kargoTakipLinkGoster = null)
    {
        // validation for constraint: boolean
        if (!is_null($kargoTakipLinkGoster) && !is_bool($kargoTakipLinkGoster)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($kargoTakipLinkGoster, true), gettype($kargoTakipLinkGoster)), __LINE__);
        }
        $this->KargoTakipLinkGoster = $kargoTakipLinkGoster;
        return $this;
    }
}
