mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
17 lines
449 B
PHP
17 lines
449 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Visit;
|
|
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Shlinkio\Shlink\Core\ShortUrl\Entity\ShortUrl;
|
|
use Shlinkio\Shlink\Core\Visit\Entity\Visit;
|
|
|
|
interface RequestTrackerInterface
|
|
{
|
|
public function trackIfApplicable(ShortUrl $shortUrl, ServerRequestInterface $request): Visit|null;
|
|
|
|
public function trackNotFoundIfApplicable(ServerRequestInterface $request): Visit|null;
|
|
}
|