Shikiryu_Backup/app/code/transport/TransportAbstract.php

30 lines
543 B
PHP
Raw Normal View History

2015-07-10 23:13:46 +02:00
<?php
namespace Shikiryu\Backup\Transport;
use Shikiryu\Backup\Backup\BackupAbstract;
abstract class TransportAbstract
{
2016-07-03 21:54:35 +02:00
/** @var BackupAbstract */
2015-07-10 23:13:46 +02:00
protected $backup;
2016-07-01 21:59:39 +02:00
/** @var array */
2015-07-10 23:13:46 +02:00
protected $config;
public function __construct(BackupAbstract $backup, array $config)
{
2015-07-12 20:34:54 +02:00
foreach ($config as $name => $value) {
$this->$name = $value;
}
2015-07-10 23:13:46 +02:00
$this->config = $config;
$this->backup = $backup;
}
/**
* @return bool
*/
2016-07-03 21:54:35 +02:00
abstract public function send();
}