public function build($conditionServiceId, array $operators, array $values)
    {
        if (!$this->container->has($conditionServiceId)) {
            return false;
        }

        /** @var ConditionInterface $condition */
        $condition = $this->container->get($conditionServiceId);
        $condition->setValidatorsFromForm($operators, $values);

        return clone $condition;
    }
public function build($conditionServiceId, array $operators, array $values)
    {
        if (!$this->container->has($conditionServiceId)) {
            return false;
        }

        /** @var ConditionInterface $condition */
        $condition = $this->container->get($conditionServiceId);
        $condition->setValidatorsFromForm($operators, $values);

        return clone $condition;
    }
public function build ( $ conditionServiceId , array $ operators , array $ values ) { if ( ! $ this -> container -> has ( $ conditionServiceId ) ) { return false ; } /** @var ConditionInterface $condition */ $ condition = $ this -> container -> get ( $ conditionServiceId ) ; $ condition -> setValidatorsFromForm ( $ operators , $ values ) ; return clone $ condition ; }
Build a Condition from form

@param string $conditionServiceId Condition class name
@param array  $operators          Condition Operator (<, >, = )
@param array  $values             Values setting this Condition

@throws \InvalidArgumentException
@return ConditionInterface        Ready to use Condition or false
Build a Condition from form