server/src/app/Repositories/DocumentRepository.php
author ymh <ymh.work@gmail.com>
Wed, 20 Jan 2016 16:42:20 +0100
changeset 112 7a542145832c
parent 22 a50cbd7d702f
child 125 e550b10fe3ca
permissions -rw-r--r--
replace corpus doc base url

<?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();
}