<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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