2FAuth/app/Services/Migrators/Migrator.php

18 lines
376 B
PHP

<?php
namespace App\Services\Migrators;
use Illuminate\Support\Collection;
abstract class Migrator
{
/**
* Convert migration data to a 2FAccounts collection.
*
* @param mixed $migrationPayload
* @return \Illuminate\Support\Collection The converted accounts
*/
abstract protected function migrate(mixed $migrationPayload) : Collection;
}