<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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