mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 00:03:12 +08:00
Extracted logic to geolocate a visit, handling possible domain errors
This commit is contained in:
17
module/Core/src/Visit/VisitToLocationHelperInterface.php
Normal file
17
module/Core/src/Visit/VisitToLocationHelperInterface.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Core\Visit;
|
||||
|
||||
use Shlinkio\Shlink\Core\Entity\Visit;
|
||||
use Shlinkio\Shlink\Core\Exception\IpCannotBeLocatedException;
|
||||
use Shlinkio\Shlink\IpGeolocation\Model\Location;
|
||||
|
||||
interface VisitToLocationHelperInterface
|
||||
{
|
||||
/**
|
||||
* @throws IpCannotBeLocatedException
|
||||
*/
|
||||
public function resolveVisitLocation(Visit $visit): Location;
|
||||
}
|
||||
Reference in New Issue
Block a user