mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Update RequestTracker so that its methods return the new Visit instance, if any
This commit is contained in:
@@ -6,10 +6,11 @@ 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): void;
|
||||
public function trackIfApplicable(ShortUrl $shortUrl, ServerRequestInterface $request): Visit|null;
|
||||
|
||||
public function trackNotFoundIfApplicable(ServerRequestInterface $request): void;
|
||||
public function trackNotFoundIfApplicable(ServerRequestInterface $request): Visit|null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user