2FAuth/app/Factories/MigratorFactoryInterface.php
2023-03-26 17:13:32 +02:00

16 lines
373 B
PHP

<?php
namespace App\Factories;
use App\Services\Migrators\Migrator;
interface MigratorFactoryInterface
{
/**
* Infer the type of migrator needed from a payload and create the migrator
*
* @param string $migrationPayload The migration payload used to infer the migrator type
*/
public function create(string $migrationPayload) : Migrator;
}