wordpress/php-fpm/wordpress_files/plugins/backwpup/inc/class-destination-downloader-interface.php

27 lines
507 B
PHP
Raw Normal View History

2020-05-22 03:40:23 +02:00
<?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();
}