Shikiryu_Backup/app/code/Transport/TransportAbstract.php

29 lines
539 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-01 21:59:39 +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
*/
public abstract function send();
}