server/src/app/Repositories/DocumentRepository.php
author ymh <ymh.work@gmail.com>
Tue, 01 Dec 2015 16:49:37 +0100
changeset 22 a50cbd7d702f
parent 4 f55970e41793
child 125 e550b10fe3ca
permissions -rw-r--r--
small change in pagination and add missing .env template

<?php
namespace CorpusParole\Repositories;

use CorpusParole\Models\Document;

interface DocumentRepository {

    public function all();

    public function get($id);

    public function save(Document $doc);

    /**
     * Paginate all document as a paginator.
     *
     * @param  int  $perPage
     * @param  string  $pageName
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginateAll($perPage = 15, $pageName = 'page', $page = null);

    public function getCount();
}