mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
65 lines
1.1 KiB
PHP
65 lines
1.1 KiB
PHP
|
<?php # -*- coding: utf-8 -*-
|
||
|
|
||
|
/**
|
||
|
* Class BackWpUp_Destination_Downloader_Data
|
||
|
*/
|
||
|
class BackWpUp_Destination_Downloader_Data {
|
||
|
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
private $job_id;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
private $local_file_path;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
private $source_file_path;
|
||
|
|
||
|
/**
|
||
|
* BackWpUp_Destination_Downloader_Data constructor
|
||
|
*
|
||
|
* @param int $job_id
|
||
|
* @param string $source_file_path
|
||
|
* @param string $local_file_path
|
||
|
*/
|
||
|
public function __construct( $job_id, $source_file_path, $local_file_path ) {
|
||
|
|
||
|
$this->job_id = $job_id;
|
||
|
$this->source_file_path = $source_file_path;
|
||
|
$this->local_file_path = $local_file_path;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function job_id() {
|
||
|
|
||
|
return $this->job_id;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Retrieve the local file path, where the backup have to be downloaded
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function local_file_path() {
|
||
|
|
||
|
return $this->local_file_path;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Retrieve the remote/source file path of the backup
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function source_file_path() {
|
||
|
|
||
|
return $this->source_file_path;
|
||
|
}
|
||
|
}
|