| 1 | <?php |
||
| 7 | class Sftp extends Collector |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \phpseclib\Net\SFTP |
||
| 11 | */ |
||
| 12 | protected $sftp; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * OpenStack remote path |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $path; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * OpenStack constructor. |
||
| 23 | * |
||
| 24 | * @param \phpbu\App\Backup\Target $target |
||
| 25 | * @param \phpseclib\Net\SFTP $sftp |
||
| 26 | * @param string $path |
||
| 27 | */ |
||
| 28 | 1 | public function __construct(Target $target, \phpseclib\Net\SFTP $sftp, string $path) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get all created backups. |
||
| 37 | * |
||
| 38 | * @return \phpbu\App\Backup\File[] |
||
| 39 | */ |
||
| 40 | 1 | public function getBackupFiles(): array |
|
| 58 | } |