<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Crm.UpdateCustomers.Request StructType
 * @subpackage Structs
 */
class BizAction_Crm_UpdateCustomers_Request extends BizAction_Crm_ImportCustomers_Request
{
    /**
     * The SkipClientDuplicationCheck
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $SkipClientDuplicationCheck;
    /**
     * Constructor method for BizAction.Crm.UpdateCustomers.Request
     * @uses BizAction_Crm_UpdateCustomers_Request::setSkipClientDuplicationCheck()
     * @param bool $skipClientDuplicationCheck
     */
    public function __construct($skipClientDuplicationCheck = null)
    {
        $this
            ->setSkipClientDuplicationCheck($skipClientDuplicationCheck);
    }
    /**
     * Get SkipClientDuplicationCheck 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 bool|null
     */
    public function getSkipClientDuplicationCheck()
    {
        return isset($this->SkipClientDuplicationCheck) ? $this->SkipClientDuplicationCheck : null;
    }
    /**
     * Set SkipClientDuplicationCheck 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 bool $skipClientDuplicationCheck
     * @return \patest\StructType\BizAction_Crm_UpdateCustomers_Request
     */
    public function setSkipClientDuplicationCheck($skipClientDuplicationCheck = null)
    {
        // validation for constraint: boolean
        if (!is_null($skipClientDuplicationCheck) && !is_bool($skipClientDuplicationCheck)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($skipClientDuplicationCheck, true), gettype($skipClientDuplicationCheck)), __LINE__);
        }
        if (is_null($skipClientDuplicationCheck) || (is_array($skipClientDuplicationCheck) && empty($skipClientDuplicationCheck))) {
            unset($this->SkipClientDuplicationCheck);
        } else {
            $this->SkipClientDuplicationCheck = $skipClientDuplicationCheck;
        }
        return $this;
    }
}
