<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ConfirmDoubleOptInResponse Parameters
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ConfirmDoubleOptInResponse
 * @subpackage Structs
 */
class ConfirmDoubleOptInResponse extends Response
{
    /**
     * The ConfirmWasSuccessful
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $ConfirmWasSuccessful;
    /**
     * Constructor method for ConfirmDoubleOptInResponse
     * @uses ConfirmDoubleOptInResponse::setConfirmWasSuccessful()
     * @param bool $confirmWasSuccessful
     */
    public function __construct($confirmWasSuccessful = null)
    {
        $this
            ->setConfirmWasSuccessful($confirmWasSuccessful);
    }
    /**
     * Get ConfirmWasSuccessful value
     * @return bool|null
     */
    public function getConfirmWasSuccessful()
    {
        return $this->ConfirmWasSuccessful;
    }
    /**
     * Set ConfirmWasSuccessful value
     * @param bool $confirmWasSuccessful
     * @return ConfirmDoubleOptInResponse
     */
    public function setConfirmWasSuccessful($confirmWasSuccessful = null)
    {
        // validation for constraint: boolean
        if (!is_null($confirmWasSuccessful) && !is_bool($confirmWasSuccessful)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($confirmWasSuccessful, true), gettype($confirmWasSuccessful)), __LINE__);
        }
        $this->ConfirmWasSuccessful = $confirmWasSuccessful;
        return $this;
    }
}
