<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for NewsletterConfirmDoubleOptInResponse Parameters
 * @subpackage Structs
 */
class NewsletterConfirmDoubleOptInResponse extends AbstractStructBase
{
    /**
     * The NewsletterConfirmDoubleOptInResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ConfirmDoubleOptInResponse
     */
    public $NewsletterConfirmDoubleOptInResult;
    /**
     * Constructor method for NewsletterConfirmDoubleOptInResponse
     * @uses NewsletterConfirmDoubleOptInResponse::setNewsletterConfirmDoubleOptInResult()
     * @param ConfirmDoubleOptInResponse $newsletterConfirmDoubleOptInResult
     */
    public function __construct(ConfirmDoubleOptInResponse $newsletterConfirmDoubleOptInResult = null)
    {
        $this
            ->setNewsletterConfirmDoubleOptInResult($newsletterConfirmDoubleOptInResult);
    }
    /**
     * Get NewsletterConfirmDoubleOptInResult 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 ConfirmDoubleOptInResponse|null
     */
    public function getNewsletterConfirmDoubleOptInResult()
    {
        return isset($this->NewsletterConfirmDoubleOptInResult) ? $this->NewsletterConfirmDoubleOptInResult : null;
    }
    /**
     * Set NewsletterConfirmDoubleOptInResult 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 ConfirmDoubleOptInResponse $newsletterConfirmDoubleOptInResult
     * @return NewsletterConfirmDoubleOptInResponse
     */
    public function setNewsletterConfirmDoubleOptInResult(ConfirmDoubleOptInResponse $newsletterConfirmDoubleOptInResult = null)
    {
        if (is_null($newsletterConfirmDoubleOptInResult) || (is_array($newsletterConfirmDoubleOptInResult) && empty($newsletterConfirmDoubleOptInResult))) {
            unset($this->NewsletterConfirmDoubleOptInResult);
        } else {
            $this->NewsletterConfirmDoubleOptInResult = $newsletterConfirmDoubleOptInResult;
        }
        return $this;
    }
}
