mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
14 lines
362 B
PHP
14 lines
362 B
PHP
|
|
<?php
|
||
|
|
namespace Acelaya\UrlShortener\Service;
|
||
|
|
|
||
|
|
interface VisitsTrackerInterface
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Tracks a new visit to provided short code, using an array of data to look up information
|
||
|
|
*
|
||
|
|
* @param string $shortCode
|
||
|
|
* @param array $visitorData Defaults to global $_SERVER
|
||
|
|
*/
|
||
|
|
public function track($shortCode, array $visitorData = null);
|
||
|
|
}
|