Files
shlink/module/Core/src/Service/VisitsTrackerInterface.php

29 lines
773 B
PHP
Raw Normal View History

2016-04-17 13:42:52 +02:00
<?php
2019-10-05 17:26:10 +02:00
2017-10-12 10:13:20 +02:00
declare(strict_types=1);
2016-07-19 18:01:39 +02:00
namespace Shlinkio\Shlink\Core\Service;
2016-04-17 13:42:52 +02:00
2020-01-01 21:11:53 +01:00
use Laminas\Paginator\Paginator;
use Shlinkio\Shlink\Core\Entity\ShortUrl;
2016-07-19 18:01:39 +02:00
use Shlinkio\Shlink\Core\Entity\Visit;
use Shlinkio\Shlink\Core\Exception\ShortUrlNotFoundException;
use Shlinkio\Shlink\Core\Model\Visitor;
use Shlinkio\Shlink\Core\Model\VisitsParams;
2016-04-17 13:42:52 +02:00
interface VisitsTrackerInterface
{
/**
* Tracks a new visit to provided short code from provided visitor
2016-04-17 13:42:52 +02:00
*/
public function track(ShortUrl $shortUrl, Visitor $visitor): void; // FIXME
/**
* Returns the visits on certain short code
*
2018-11-28 20:39:08 +01:00
* @return Visit[]|Paginator
* @throws ShortUrlNotFoundException
*/
public function info(string $shortCode, VisitsParams $params): Paginator; // FIXME
2016-04-17 13:42:52 +02:00
}