equal
deleted
inserted
replaced
1 <?php |
1 <?php |
2 |
|
3 namespace CorpusParole\Repositories; |
2 namespace CorpusParole\Repositories; |
4 |
3 |
|
4 use CorpusParole\Models\Document; |
|
5 |
5 interface DocumentRepository { |
6 interface DocumentRepository { |
6 |
7 |
7 public function all(); |
8 public function all(); |
8 |
9 |
9 public function get($id); |
10 public function get($id); |
|
11 |
|
12 public function save(Document $doc); |
|
13 |
|
14 /** |
|
15 * Paginate all document as a paginator. |
|
16 * |
|
17 * @param int $perPage |
|
18 * @param string $pageName |
|
19 * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
|
20 */ |
|
21 public function paginateAll($perPage = 15, $pageName = 'page'); |
|
22 |
|
23 public function getCount(); |
10 } |
24 } |