<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SelectSiparisOdeme StructType
 * @subpackage Structs
 */
class SelectSiparisOdeme 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 odemeId
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $odemeId;
    /**
     * Constructor method for SelectSiparisOdeme
     * @uses SelectSiparisOdeme::setUyeKodu()
     * @uses SelectSiparisOdeme::setSiparisId()
     * @uses SelectSiparisOdeme::setOdemeId()
     * @param string $uyeKodu
     * @param int $siparisId
     * @param int $odemeId
     */
    public function __construct($uyeKodu = null, $siparisId = null, $odemeId = null)
    {
        $this
            ->setUyeKodu($uyeKodu)
            ->setSiparisId($siparisId)
            ->setOdemeId($odemeId);
    }
    /**
     * 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\SelectSiparisOdeme
     */
    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\SelectSiparisOdeme
     */
    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 odemeId value
     * @return int|null
     */
    public function getOdemeId()
    {
        return $this->odemeId;
    }
    /**
     * Set odemeId value
     * @param int $odemeId
     * @return \SelectSiparis\SelectSiparisOdeme
     */
    public function setOdemeId($odemeId = null)
    {
        // validation for constraint: int
        if (!is_null($odemeId) && !(is_int($odemeId) || ctype_digit($odemeId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($odemeId, true), gettype($odemeId)), __LINE__);
        }
        $this->odemeId = $odemeId;
        return $this;
    }
}
