server/src/app/Repositories/DocumentRepository.php
author nowmad@nowmads-macbook-pro.local
Thu, 10 Dec 2015 17:00:59 +0100
changeset 49 66739650678f
parent 4 f55970e41793
child 22 a50cbd7d702f
permissions -rw-r--r--
update main index to add the 2 kind of menu (hash and history) and set the locationType to hash

<?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');

    public function getCount();
}