<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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