mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 14:53:12 +08:00
21 lines
523 B
PHP
21 lines
523 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Visit;
|
|
|
|
use Shlinkio\Shlink\Core\Entity\Visit;
|
|
use Shlinkio\Shlink\Core\Entity\VisitLocation;
|
|
use Shlinkio\Shlink\Core\Exception\IpCannotBeLocatedException;
|
|
use Shlinkio\Shlink\IpGeolocation\Model\Location;
|
|
|
|
interface VisitGeolocationHelperInterface
|
|
{
|
|
/**
|
|
* @throws IpCannotBeLocatedException
|
|
*/
|
|
public function geolocateVisit(Visit $visit): Location;
|
|
|
|
public function onVisitLocated(VisitLocation $visitLocation, Visit $visit): void;
|
|
}
|