protected function compileCondition(ConditionContract $condition)
    {

        $operand = $condition->operand();

        $matcher = $this->compile($condition->constraint());

        return function ($data) use ($operand, $matcher) {
            return $matcher($this->value($data, $operand));
        };

    }
protected function compileCondition(ConditionContract $condition)
    {

        $operand = $condition->operand();

        $matcher = $this->compile($condition->constraint());

        return function ($data) use ($operand, $matcher) {
            return $matcher($this->value($data, $operand));
        };

    }
protected function compileCondition ( ConditionContract $ condition ) { $ operand = $ condition -> operand ( ) ; $ matcher = $ this -> compile ( $ condition -> constraint ( ) ) ; return function ( $ data ) use ( $ operand , $ matcher ) { return $ matcher ( $ this -> value ( $ data , $ operand ) ) ; } ; }
Make a Closure to match a Condition.

@param ConditionContract $condition

@return \Closure
Make a Closure to match a Condition .