<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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