PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
vendor
/
inpsyde
/
backwpup-restore-shared
/
src
/
Api
/
Module
/
Database
<?php declare(strict_types=1); namespace Inpsyde\Restore\Api\Module\Database; class ImportFileFactory { /** * @var array<string, class-string<ImportFileInterface>> */ private $types = []; /** * @param array<string, class-string<ImportFileInterface>> $types */ public function __construct(array $types) { $this->types = $types; } public function import_file(string $type = 'sql'): ?ImportFileInterface { if (!empty($type) && isset($this->types[$type])) { return new $this->types[$type](); } return null; } }
[+]
Exception
[-] SqlFileImport.php
[edit]
[-] ImportFileFactory.php
[edit]
[-] MysqliDatabaseType.php
[edit]
[-] DatabaseTypeFactory.php
[edit]
[-] ImportFileInterface.php
[edit]
[+]
..
[-] DatabaseInterface.php
[edit]
[-] ImportModel.php
[edit]