original_string: protected function purge(array $idArchivesToDelete, Date $dateStart, $reason)
      {
          $deletedRowCount = 0;
          if (!empty($idArchivesToDelete)) {
              $deletedRowCount = $this->deleteArchiveIds($dateStart, $idArchivesToDelete);
  
              $this->logger->info(
                  "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}.",
                  array(
                      'count' => $deletedRowCount,
                      'date' => $dateStart,
                      'reason' => $reason
                  )
              );
  
              $this->logger->debug("[Deleted IDs: {deletedIds}]", array(
                  'deletedIds' => implode(',', $idArchivesToDelete)
              ));
          } else {
              $this->logger->debug(
                  "No archives for {reason} found in archive numeric table for {date}.",
                  array('date' => $dateStart, 'reason' => $reason)
              );
          }
  
          return $deletedRowCount;
      }
code: protected function purge(array $idArchivesToDelete, Date $dateStart, $reason)
      {
          $deletedRowCount = 0;
          if (!empty($idArchivesToDelete)) {
              $deletedRowCount = $this->deleteArchiveIds($dateStart, $idArchivesToDelete);
  
              $this->logger->info(
                  "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}.",
                  array(
                      'count' => $deletedRowCount,
                      'date' => $dateStart,
                      'reason' => $reason
                  )
              );
  
              $this->logger->debug("[Deleted IDs: {deletedIds}]", array(
                  'deletedIds' => implode(',', $idArchivesToDelete)
              ));
          } else {
              $this->logger->debug(
                  "No archives for {reason} found in archive numeric table for {date}.",
                  array('date' => $dateStart, 'reason' => $reason)
              );
          }
  
          return $deletedRowCount;
      }
code_tokens: protected function purge ( array $ idArchivesToDelete , Date $ dateStart , $ reason ) { $ deletedRowCount = 0 ; if ( ! empty ( $ idArchivesToDelete ) ) { $ deletedRowCount = $ this -> deleteArchiveIds ( $ dateStart , $ idArchivesToDelete ) ; $ this -> logger -> info ( "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}." , array ( 'count' => $ deletedRowCount , 'date' => $ dateStart , 'reason' => $ reason ) ) ; $ this -> logger -> debug ( "[Deleted IDs: {deletedIds}]" , array ( 'deletedIds' => implode ( ',' , $ idArchivesToDelete ) ) ) ; } else { $ this -> logger -> debug ( "No archives for {reason} found in archive numeric table for {date}." , array ( 'date' => $ dateStart , 'reason' => $ reason ) ) ; } return $ deletedRowCount ; }
docstring: Purge all numeric and blob archives with the given IDs from the database.
  @param array $idArchivesToDelete
  @param Date $dateStart
  @param string $reason
  @return int
docstring_tokens: Purge all numeric and blob archives with the given IDs from the database .