From 1183d651843cd6ed0657b5c320f1c5cc8fdebe25 Mon Sep 17 00:00:00 2001 From: Alejandro Medina Date: Sat, 14 Dec 2019 11:58:08 -0300 Subject: [PATCH] Add date range filter to short url repository interface --- module/Core/src/Repository/ShortUrlRepositoryInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/Core/src/Repository/ShortUrlRepositoryInterface.php b/module/Core/src/Repository/ShortUrlRepositoryInterface.php index da5cef61..23c555b3 100644 --- a/module/Core/src/Repository/ShortUrlRepositoryInterface.php +++ b/module/Core/src/Repository/ShortUrlRepositoryInterface.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Shlinkio\Shlink\Core\Repository; use Doctrine\Common\Persistence\ObjectRepository; +use Shlinkio\Shlink\Common\Util\DateRange; use Shlinkio\Shlink\Core\Entity\ShortUrl; interface ShortUrlRepositoryInterface extends ObjectRepository @@ -19,7 +20,8 @@ interface ShortUrlRepositoryInterface extends ObjectRepository ?int $offset = null, ?string $searchTerm = null, array $tags = [], - $orderBy = null + $orderBy = null, + ?DateRange $dateRange = null ): array; /**