<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SelectSiparis StructType
 * @subpackage Structs
 */
class SelectSiparis extends AbstractStructBase
{
    /**
     * The UyeKodu
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $UyeKodu;
    /**
     * The f
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \SelectSiparis\WebSiparisFiltre
     */
    public $f;
    /**
     * The s
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \SelectSiparis\WebSiparisSayfalama
     */
    public $s;
    /**
     * Constructor method for SelectSiparis
     * @uses SelectSiparis::setUyeKodu()
     * @uses SelectSiparis::setF()
     * @uses SelectSiparis::setS()
     * @param string $uyeKodu
     * @param \SelectSiparis\WebSiparisFiltre $f
     * @param \SelectSiparis\WebSiparisSayfalama $s
     */
    public function __construct($uyeKodu = null, \SelectSiparis\WebSiparisFiltre $f = null, \SelectSiparis\WebSiparisSayfalama $s = null)
    {
        $this
            ->setUyeKodu($uyeKodu)
            ->setF($f)
            ->setS($s);
    }
    /**
     * 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\SelectSiparis
     */
    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 f 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\WebSiparisFiltre|null
     */
    public function getF()
    {
        return isset($this->f) ? $this->f : null;
    }
    /**
     * Set f 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\WebSiparisFiltre $f
     * @return \SelectSiparis\SelectSiparis
     */
    public function setF(\SelectSiparis\WebSiparisFiltre $f = null)
    {
        if (is_null($f) || (is_array($f) && empty($f))) {
            unset($this->f);
        } else {
            $this->f = $f;
        }
        return $this;
    }
    /**
     * Get s 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\WebSiparisSayfalama|null
     */
    public function getS()
    {
        return isset($this->s) ? $this->s : null;
    }
    /**
     * Set s 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\WebSiparisSayfalama $s
     * @return \SelectSiparis\SelectSiparis
     */
    public function setS(\SelectSiparis\WebSiparisSayfalama $s = null)
    {
        if (is_null($s) || (is_array($s) && empty($s))) {
            unset($this->s);
        } else {
            $this->s = $s;
        }
        return $this;
    }
}
