protected function addBooleanRule($ruleName, $bool = true)
	{
		if (!is_bool($bool))
		{
			throw new InvalidArgumentException($ruleName . '() expects a boolean');
		}

		$this->items[$ruleName] = $bool;
	}
protected function addBooleanRule($ruleName, $bool = true)
	{
		if (!is_bool($bool))
		{
			throw new InvalidArgumentException($ruleName . '() expects a boolean');
		}

		$this->items[$ruleName] = $bool;
	}
protected function addBooleanRule ( $ ruleName , $ bool = true ) { if ( ! is_bool ( $ bool ) ) { throw new InvalidArgumentException ( $ ruleName . '() expects a boolean' ) ; } $ this -> items [ $ ruleName ] = $ bool ; }
Add a boolean rule

@param  string $ruleName Name of the rule
@param  bool   $bool     Whether to enable or disable the rule
@return self
Add a boolean rule