<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SetSepetKampanyaResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SetSepetKampanyaResponse
 * @subpackage Structs
 */
class SetSepetKampanyaResponse extends WebServisResponse
{
    /**
     * The SetSepetKampanyaResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \SelectSiparis\SetSepetKampanyaResponse
     */
    public $SetSepetKampanyaResult;
    /**
     * Constructor method for SetSepetKampanyaResponse
     * @uses SetSepetKampanyaResponse::setSetSepetKampanyaResult()
     * @param \SelectSiparis\SetSepetKampanyaResponse $setSepetKampanyaResult
     */
    public function __construct(\SelectSiparis\SetSepetKampanyaResponse $setSepetKampanyaResult = null)
    {
        $this
            ->setSetSepetKampanyaResult($setSepetKampanyaResult);
    }
    /**
     * Get SetSepetKampanyaResult 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\SetSepetKampanyaResponse|null
     */
    public function getSetSepetKampanyaResult()
    {
        return isset($this->SetSepetKampanyaResult) ? $this->SetSepetKampanyaResult : null;
    }
    /**
     * Set SetSepetKampanyaResult 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\SetSepetKampanyaResponse $setSepetKampanyaResult
     * @return \SelectSiparis\SetSepetKampanyaResponse
     */
    public function setSetSepetKampanyaResult(\SelectSiparis\SetSepetKampanyaResponse $setSepetKampanyaResult = null)
    {
        if (is_null($setSepetKampanyaResult) || (is_array($setSepetKampanyaResult) && empty($setSepetKampanyaResult))) {
            unset($this->SetSepetKampanyaResult);
        } else {
            $this->SetSepetKampanyaResult = $setSepetKampanyaResult;
        }
        return $this;
    }
}
