mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
33 lines
964 B
PHP
33 lines
964 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Service;
|
|
|
|
use Laminas\Paginator\Paginator;
|
|
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
|
use Shlinkio\Shlink\Core\Entity\Visit;
|
|
use Shlinkio\Shlink\Core\Exception\ShortUrlNotFoundException;
|
|
use Shlinkio\Shlink\Core\Exception\TagNotFoundException;
|
|
use Shlinkio\Shlink\Core\Model\ShortUrlIdentifier;
|
|
use Shlinkio\Shlink\Core\Model\Visitor;
|
|
use Shlinkio\Shlink\Core\Model\VisitsParams;
|
|
use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
|
|
|
interface VisitsTrackerInterface
|
|
{
|
|
public function track(ShortUrl $shortUrl, Visitor $visitor): void;
|
|
|
|
/**
|
|
* @return Visit[]|Paginator
|
|
* @throws ShortUrlNotFoundException
|
|
*/
|
|
public function info(ShortUrlIdentifier $identifier, VisitsParams $params, ?ApiKey $apiKey = null): Paginator;
|
|
|
|
/**
|
|
* @return Visit[]|Paginator
|
|
* @throws TagNotFoundException
|
|
*/
|
|
public function visitsForTag(string $tag, VisitsParams $params): Paginator;
|
|
}
|