mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 15:53:13 +08:00
19 lines
399 B
PHP
19 lines
399 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\CLI\GeoLite;
|
|
|
|
use Shlinkio\Shlink\CLI\Exception\GeolocationDbUpdateFailedException;
|
|
|
|
interface GeolocationDbUpdaterInterface
|
|
{
|
|
/**
|
|
* @throws GeolocationDbUpdateFailedException
|
|
*/
|
|
public function checkDbUpdate(
|
|
?callable $beforeDownload = null,
|
|
?callable $handleProgress = null,
|
|
): GeolocationResult;
|
|
}
|