mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
21 lines
535 B
PHP
21 lines
535 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Visit\Geolocation;
|
|
|
|
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;
|
|
}
|