* $condition = new ezcWorkflowConditionVariable ( 'variable name' , * new ezcWorkflowConditionIsBoolean * ); * * * @package Workflow * @version 1.0.1 */ class ezcWorkflowConditionIsBool extends ezcWorkflowConditionType { /** * Evaluates this condition and returns true if $value is a boolean or false if not. * * @param mixed $value * @return boolean true when the condition holds, false otherwise. * @ignore */ public function evaluate( $value ) { return is_bool( $value ); } /** * Returns a textual representation of this condition. * * @return string * @ignore */ public function __toString() { return 'is bool'; } } ?>