protected function compileWherePart(Query $query, array &$bindings): string
    {
        $sql = $this->compileCriteria($query->where, $bindings);
        if ($sql !== '') {
            $sql = 'WHERE '.$sql;
        }

        return $sql;
    }
protected function compileWherePart(Query $query, array &$bindings): string
    {
        $sql = $this->compileCriteria($query->where, $bindings);
        if ($sql !== '') {
            $sql = 'WHERE '.$sql;
        }

        return $sql;
    }
protected function compileWherePart ( Query $ query , array & $ bindings ) : string { $ sql = $ this -> compileCriteria ( $ query -> where , $ bindings ) ; if ( $ sql !== '' ) { $ sql = 'WHERE ' . $ sql ; } return $ sql ; }
Compiles a WHERE part of an SQL query.

@param Query $query Query data
@param array $bindings Bound values (array is filled by link)
@return string SQL text
@throws InvalidQueryException
Compiles a WHERE part of an SQL query .