mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added option to filter by date the visits list
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
namespace Shlinkio\Shlink\Core\Service;
|
||||
|
||||
use Shlinkio\Shlink\Common\Util\DateRange;
|
||||
use Shlinkio\Shlink\Core\Entity\Visit;
|
||||
use Zend\Paginator\Paginator;
|
||||
|
||||
interface VisitsTrackerInterface
|
||||
{
|
||||
@@ -15,10 +15,11 @@ interface VisitsTrackerInterface
|
||||
public function track($shortCode, array $visitorData = null);
|
||||
|
||||
/**
|
||||
* Returns the visits on certain shortcode
|
||||
* Returns the visits on certain short code
|
||||
*
|
||||
* @param $shortCode
|
||||
* @return Paginator|Visit[]
|
||||
* @param DateRange $dateRange
|
||||
* @return Visit[]
|
||||
*/
|
||||
public function info($shortCode);
|
||||
public function info($shortCode, DateRange $dateRange = null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user