src/QueryBricks/WhereTrait.php
public function whereNot(\Closure $callback, string $appendRule = 'AND'): self
    {
        $groupQuery = $this->resolveCriteriaGroupClosure($callback);
        $this->where[] = new CriteriaCriterion($groupQuery->where, true, $appendRule);
        return $this;
    }
public function whereNot(\Closure $callback, string $appendRule = 'AND'): self
    {
        $groupQuery = $this->resolveCriteriaGroupClosure($callback);
        $this->where[] = new CriteriaCriterion($groupQuery->where, true, $appendRule);
        return $this;
    }
public function whereNot ( \ Closure $ callback , string $ appendRule = 'AND' ) : self { $ groupQuery = $ this -> resolveCriteriaGroupClosure ( $ callback ) ; $ this -> where [ ] = new CriteriaCriterion ( $ groupQuery -> where , true , $ appendRule ) ; return $ this ; }
Adds a group of criteria wrapped by NOT.

@param \Closure $callback Makes a group of criteria
@param string $appendRule How the criterion should be appended to the others (SQL boolean operator name)
@return $this
@throws InvalidReturnValueException
Adds a group of criteria wrapped by NOT .