update
This commit is contained in:
23
app/Services/Countries/CountryRemoteProviderInterface.php
Normal file
23
app/Services/Countries/CountryRemoteProviderInterface.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Countries;
|
||||
|
||||
interface CountryRemoteProviderInterface
|
||||
{
|
||||
/**
|
||||
* Fetch and normalize all remote countries.
|
||||
*
|
||||
* @return array<int, array<string, mixed>>
|
||||
*/
|
||||
public function fetchAll(): array;
|
||||
|
||||
/**
|
||||
* Normalize a raw payload into syncable country records.
|
||||
*
|
||||
* @param array<int, mixed> $payload
|
||||
* @return array<int, array<string, mixed>>
|
||||
*/
|
||||
public function normalizePayload(array $payload): array;
|
||||
}
|
||||
Reference in New Issue
Block a user