mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-29 03:33:17 +01:00
16 lines
395 B
PHP
16 lines
395 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
|
||
|
* @return Migrator
|
||
|
*/
|
||
|
public function create(string $migrationPayload) : Migrator;
|
||
|
}
|