protected function checkRuleCorrect(stdClass $rule)
    {
        if (!isset($rule->operator, $rule->id, $rule->field, $rule->type)) {
            return false;
        }

        if (!isset($this->operators[$rule->operator])) {
            return false;
        }

        return true;
    }
protected function checkRuleCorrect(stdClass $rule)
    {
        if (!isset($rule->operator, $rule->id, $rule->field, $rule->type)) {
            return false;
        }

        if (!isset($this->operators[$rule->operator])) {
            return false;
        }

        return true;
    }
protected function checkRuleCorrect ( stdClass $ rule ) { if ( ! isset ( $ rule -> operator , $ rule -> id , $ rule -> field , $ rule -> type ) ) { return false ; } if ( ! isset ( $ this -> operators [ $ rule -> operator ] ) ) { return false ; } return true ; }
Check if a given rule is correct.

Just before making a query for a rule, we want to make sure that the field, operator and value are set

@param stdClass $rule

@return bool true if values are correct.
Check if a given rule is correct .