mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
24 lines
519 B
PHP
24 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Tests\Support\Fakes;
|
|
|
|
use League\Flysystem\FilesystemAdapter;
|
|
use Pterodactyl\Extensions\Backups\BackupManager;
|
|
|
|
class FakeBackupManager extends BackupManager
|
|
{
|
|
/** @var list<string|null> */
|
|
public array $adapterCalls = [];
|
|
|
|
public function __construct(private FakeS3Filesystem $filesystem) {}
|
|
|
|
public function adapter(?string $name = null): FilesystemAdapter
|
|
{
|
|
$this->adapterCalls[] = $name;
|
|
|
|
return $this->filesystem;
|
|
}
|
|
}
|