Updated visits to support pagination

This commit is contained in:
Alejandro Celaya
2018-11-28 20:39:08 +01:00
parent b0f250ed8a
commit d0e0aea0f1
11 changed files with 167 additions and 60 deletions

View File

@@ -7,6 +7,7 @@ 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
{
@@ -18,8 +19,8 @@ interface VisitsTrackerInterface
/**
* Returns the visits on certain short code
*
* @return Visit[]
* @return Visit[]|Paginator
* @throws InvalidArgumentException
*/
public function info(string $shortCode, VisitsParams $params): array;
public function info(string $shortCode, VisitsParams $params): Paginator;
}