* * * * @package Workflow * @version //autogen// */ class ezcWorkflowConditionAnd extends ezcWorkflowConditionBooleanSet { /** * Textual representation of the concatenation. * * @var string */ protected $concatenation = '&&'; /** * Evaluates this condition with $value and returns true if the condition holds and false otherwise. * * @param mixed $value * @return boolean true when the condition holds, false otherwise. * @ignore */ public function evaluate( $value ) { foreach ( $this->conditions as $condition ) { if ( !$condition->evaluate( $value ) ) { return false; } } return true; } } ?>