mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
25 lines
640 B
PHP
25 lines
640 B
PHP
<?php
|
|
namespace Shlinkio\Shlink\Common\Repository;
|
|
|
|
interface PaginableRepositoryInterface
|
|
{
|
|
/**
|
|
* Gets a list of elements using provided filtering data
|
|
*
|
|
* @param int|null $limit
|
|
* @param int|null $offset
|
|
* @param string|null $searchTerm
|
|
* @param string|array|null $orderBy
|
|
* @return array
|
|
*/
|
|
public function findList($limit = null, $offset = null, $searchTerm = null, $orderBy = null);
|
|
|
|
/**
|
|
* Counts the number of elements in a list using provided filtering data
|
|
*
|
|
* @param null $searchTerm
|
|
* @return int
|
|
*/
|
|
public function countList($searchTerm = null);
|
|
}
|