<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TerminateCustomerResponse StructType
 * @subpackage Structs
 */
class TerminateCustomerResponse extends AbstractStructBase
{
    /**
     * The TerminateCustomerResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $TerminateCustomerResult;
    /**
     * Constructor method for TerminateCustomerResponse
     * @uses TerminateCustomerResponse::setTerminateCustomerResult()
     * @param bool $terminateCustomerResult
     */
    public function __construct($terminateCustomerResult = null)
    {
        $this
            ->setTerminateCustomerResult($terminateCustomerResult);
    }
    /**
     * Get TerminateCustomerResult value
     * @return bool
     */
    public function getTerminateCustomerResult()
    {
        return $this->TerminateCustomerResult;
    }
    /**
     * Set TerminateCustomerResult value
     * @param bool $terminateCustomerResult
     * @return \CustomerManagement\StructType\TerminateCustomerResponse
     */
    public function setTerminateCustomerResult($terminateCustomerResult = null)
    {
        // validation for constraint: boolean
        if (!is_null($terminateCustomerResult) && !is_bool($terminateCustomerResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($terminateCustomerResult, true), gettype($terminateCustomerResult)), __LINE__);
        }
        $this->TerminateCustomerResult = $terminateCustomerResult;
        return $this;
    }
}
