* * * * @package Workflow * @version 1.4beta1 */ class ezcWorkflowConditionIsInteger extends ezcWorkflowConditionType { /** * Evaluates this condition and returns true if $value is an integer or false if not. * * @param mixed $value * @return boolean true when the condition holds, false otherwise. * @ignore */ public function evaluate( $value ) { return is_int( $value ); } /** * Returns a textual representation of this condition. * * @return string * @ignore */ public function __toString() { return 'is integer'; } } ?>