示例#1
0
 /**
  * {@inheritdoc}
  */
 public function resolve(ConditionInterface $condition)
 {
     if (!isset($this->evaluators[$condition->getType()])) {
         throw new EvaluatorNotFoundException(sprintf('Evaluator for "%s" type not found.', $condition->getType()));
     }
     return $this->evaluators[$condition->getType()];
 }