Updated UrlShortener so that it does not match a short code which is out of the validity dat erange

This commit is contained in:
Alejandro Celaya
2017-10-21 11:58:20 +02:00
parent 68b4cfbae0
commit a3bbd06fe3
6 changed files with 116 additions and 42 deletions

View File

@@ -15,14 +15,20 @@ interface PaginableRepositoryInterface
* @param string|array|null $orderBy
* @return array
*/
public function findList($limit = null, $offset = null, $searchTerm = null, array $tags = [], $orderBy = null);
public function findList(
int $limit = null,
int $offset = null,
string $searchTerm = null,
array $tags = [],
$orderBy = null
): array;
/**
* Counts the number of elements in a list using provided filtering data
*
* @param null $searchTerm
* @param string|null $searchTerm
* @param array $tags
* @return int
*/
public function countList($searchTerm = null, array $tags = []);
public function countList(string $searchTerm = null, array $tags = []): int;
}