. */ include_once('CFDBEvaluator.php'); class CFDBCompositeEvaluator implements CFDBEvaluator { /** * @var CFDBEvaluator[] */ var $evaluators; /** * @param $evaluators CFDBEvaluator[] */ public function setEvaluators($evaluators) { $this->evaluators = $evaluators; } public function evaluate(&$data) { if (is_array($this->evaluators)) { foreach ($this->evaluators as $anEvaluator) { if (!$anEvaluator->evaluate($data)) { return false; } } } return true; } }