server/src/app/Repositories/DocumentRepository.php
author nowmad@23.1.168.192.in-addr.arpa
Fri, 06 Nov 2015 15:38:42 +0100
changeset 7 479b1dd5a8e3
parent 4 f55970e41793
child 22 a50cbd7d702f
permissions -rw-r--r--
update .hgignore to ignore build, temp and config files in the ember app and the drupal module

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