private function getTotal(string $table): int
    {
        $config = $this->reader->getEntityConfig($table);
        $limit = (int)$config['limit'];
        if ($config['action'] === 'insert') {
            return empty($limit) ? 100 : $limit;
        }

        $rows = $this->dbUtils->countResults($table);
        if (empty($limit)) {
            return $rows;
        }

        if (!empty($limit) && $limit > $rows) {
            return $rows;
        }

        return $limit;
    }
private function getTotal(string $table): int
    {
        $config = $this->reader->getEntityConfig($table);
        $limit = (int)$config['limit'];
        if ($config['action'] === 'insert') {
            return empty($limit) ? 100 : $limit;
        }

        $rows = $this->dbUtils->countResults($table);
        if (empty($limit)) {
            return $rows;
        }

        if (!empty($limit) && $limit > $rows) {
            return $rows;
        }

        return $limit;
    }
private function getTotal ( string $ table ) : int { $ config = $ this -> reader -> getEntityConfig ( $ table ) ; $ limit = ( int ) $ config [ 'limit' ] ; if ( $ config [ 'action' ] === 'insert' ) { return empty ( $ limit ) ? 100 : $ limit ; } $ rows = $ this -> dbUtils -> countResults ( $ table ) ; if ( empty ( $ limit ) ) { return $ rows ; } if ( ! empty ( $ limit ) && $ limit > $ rows ) { return $ rows ; } return $ limit ; }
Define the total number of records to process for progress bar

@param  string $table

@return int
Define the total number of records to process for progress bar