<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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