protected static function fetch($sql, $params = []): array
    {
        $self = static::getInstance();
        return DbProxy::fetchObjects($sql, $params, $self->rowClass);
    }
protected static function fetch($sql, $params = []): array
    {
        $self = static::getInstance();
        return DbProxy::fetchObjects($sql, $params, $self->rowClass);
    }
protected static function fetch ( $ sql , $ params = [ ] ) : array { $ self = static :: getInstance ( ) ; return DbProxy :: fetchObjects ( $ sql , $ params , $ self -> rowClass ) ; }
Fetching rows by SQL query

@param  string $sql    SQL query with placeholders
@param  array  $params Params for query placeholders

@return RowInterface[] of rows results in FETCH_CLASS mode
Fetching rows by SQL query