Shikiryu_Backup/app/code/Transport/TransportAbstract.php
2015-07-12 20:34:54 +02:00

27 lines
489 B
PHP

<?php
namespace Shikiryu\Backup\Transport;
use Shikiryu\Backup\Backup\BackupAbstract;
abstract class TransportAbstract
{
protected $backup;
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
*/
public abstract function send();
}