mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
28 lines
707 B
PHP
28 lines
707 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Service;
|
|
|
|
use Shlinkio\Shlink\Core\Entity\Visit;
|
|
use Shlinkio\Shlink\Core\Exception\InvalidArgumentException;
|
|
use Shlinkio\Shlink\Core\Model\Visitor;
|
|
use Shlinkio\Shlink\Core\Model\VisitsParams;
|
|
use Zend\Paginator\Paginator;
|
|
|
|
interface VisitsTrackerInterface
|
|
{
|
|
/**
|
|
* Tracks a new visit to provided short code from provided visitor
|
|
*/
|
|
public function track(string $shortCode, Visitor $visitor): void;
|
|
|
|
/**
|
|
* Returns the visits on certain short code
|
|
*
|
|
* @return Visit[]|Paginator
|
|
* @throws InvalidArgumentException
|
|
*/
|
|
public function info(string $shortCode, VisitsParams $params): Paginator;
|
|
}
|