Take page size into account. [skip ci]

This commit is contained in:
James Cole
2016-04-21 10:23:19 +02:00
parent 2bb883219c
commit ef48a79d0c
4 changed files with 28 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ namespace FireflyIII\Repositories\Bill;
use Carbon\Carbon;
use FireflyIII\Models\Bill;
use FireflyIII\Models\TransactionJournal;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
/**
@@ -97,9 +98,12 @@ interface BillRepositoryInterface
/**
* @param Bill $bill
*
* @return Collection
* @param int $page
* @param int $pageSize
*
* @return LengthAwarePaginator
*/
public function getJournals(Bill $bill): Collection;
public function getJournals(Bill $bill, int $page, int $pageSize = 50): LengthAwarePaginator;
/**
* Get all journals that were recorded on this bill between these dates.