mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added DTO used to pass filtering params to VisitsTracker
This commit is contained in:
@@ -3,10 +3,10 @@ declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Core\Service;
|
||||
|
||||
use Shlinkio\Shlink\Common\Util\DateRange;
|
||||
use Shlinkio\Shlink\Core\Entity\Visit;
|
||||
use Shlinkio\Shlink\Core\Exception\InvalidArgumentException;
|
||||
use Shlinkio\Shlink\Core\Model\Visitor;
|
||||
use Shlinkio\Shlink\Core\Model\VisitsParams;
|
||||
|
||||
interface VisitsTrackerInterface
|
||||
{
|
||||
@@ -18,10 +18,8 @@ interface VisitsTrackerInterface
|
||||
/**
|
||||
* Returns the visits on certain short code
|
||||
*
|
||||
* @param string $shortCode
|
||||
* @param DateRange $dateRange
|
||||
* @return Visit[]
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function info(string $shortCode, DateRange $dateRange = null): array;
|
||||
public function info(string $shortCode, VisitsParams $params): array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user