public function IsValid() {
        if (!is_bool($this->value)) {
            $errorMsg = 'The $value property of the instance of ' . __CLASS__ . ' is not a boolean.';
            throw new InvalidArgumentException($errorMsg, Codes\GeneralErrors::VALUE_IS_NOT_OF_EXPECTED_TYPE, null);
        }

        return true;
    }
public function IsValid() {
        if (!is_bool($this->value)) {
            $errorMsg = 'The $value property of the instance of ' . __CLASS__ . ' is not a boolean.';
            throw new InvalidArgumentException($errorMsg, Codes\GeneralErrors::VALUE_IS_NOT_OF_EXPECTED_TYPE, null);
        }

        return true;
    }
public function IsValid ( ) { if ( ! is_bool ( $ this -> value ) ) { $ errorMsg = 'The $value property of the instance of ' . __CLASS__ . ' is not a boolean.' ; throw new InvalidArgumentException ( $ errorMsg , Codes \ GeneralErrors :: VALUE_IS_NOT_OF_EXPECTED_TYPE , null ) ; } return true ; }
Validates the property value.

@return boolean The result
@throws InvalidArgumentException
Validates the property value .