wordpress/php-fpm/wordpress_files/plugins/backwpup/inc/class-destination-downloader-interface.php
2020-05-22 01:40:23 +00:00

27 lines
507 B
PHP

<?php # -*- coding: utf-8 -*-
/**
* Interface BackWPup_Destination_Downloader_Service_Interface
*/
interface BackWPup_Destination_Downloader_Interface {
/**
* Download part of the backup file
*
* @param int $start_byte
* @param int $end_byte
*
* @return void
*
* @throws Exception In case something went wrong.
*/
public function download_chunk( $start_byte, $end_byte );
/**
* Calculated the size of the source file
*
* @return int
*/
public function calculate_size();
}