original_string: protected function deleteArchiveIds(Date $date, $idArchivesToDelete)
      {
          $batches      = array_chunk($idArchivesToDelete, 1000);
          $numericTable = ArchiveTableCreator::getNumericTable($date);
          $blobTable    = ArchiveTableCreator::getBlobTable($date);
  
          $deletedCount = 0;
          foreach ($batches as $idsToDelete) {
              $deletedCount += $this->model->deleteArchiveIds($numericTable, $blobTable, $idsToDelete);
          }
          return $deletedCount;
      }
code: protected function deleteArchiveIds(Date $date, $idArchivesToDelete)
      {
          $batches      = array_chunk($idArchivesToDelete, 1000);
          $numericTable = ArchiveTableCreator::getNumericTable($date);
          $blobTable    = ArchiveTableCreator::getBlobTable($date);
  
          $deletedCount = 0;
          foreach ($batches as $idsToDelete) {
              $deletedCount += $this->model->deleteArchiveIds($numericTable, $blobTable, $idsToDelete);
          }
          return $deletedCount;
      }
code_tokens: protected function deleteArchiveIds ( Date $ date , $ idArchivesToDelete ) { $ batches = array_chunk ( $ idArchivesToDelete , 1000 ) ; $ numericTable = ArchiveTableCreator :: getNumericTable ( $ date ) ; $ blobTable = ArchiveTableCreator :: getBlobTable ( $ date ) ; $ deletedCount = 0 ; foreach ( $ batches as $ idsToDelete ) { $ deletedCount += $ this -> model -> deleteArchiveIds ( $ numericTable , $ blobTable , $ idsToDelete ) ; } return $ deletedCount ; }
docstring: Deletes by batches Archive IDs in the specified month,
  
  @param Date $date
  @param $idArchivesToDelete
  @return int Number of rows deleted from both numeric + blob table.
docstring_tokens: Deletes by batches Archive IDs in the specified month