mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2021-06-30 16:02:14 +02:00
30 lines
543 B
PHP
30 lines
543 B
PHP
<?php
|
|
|
|
namespace Shikiryu\Backup\Transport;
|
|
|
|
use Shikiryu\Backup\Backup\BackupAbstract;
|
|
|
|
abstract class TransportAbstract
|
|
{
|
|
|
|
/** @var BackupAbstract */
|
|
protected $backup;
|
|
/** @var array */
|
|
protected $config;
|
|
|
|
public function __construct(BackupAbstract $backup, array $config)
|
|
{
|
|
|
|
foreach ($config as $name => $value) {
|
|
$this->$name = $value;
|
|
}
|
|
$this->config = $config;
|
|
$this->backup = $backup;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
abstract public function send();
|
|
}
|