<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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