--- a/server/src/app/Repositories/DocumentRepository.php Wed Jun 24 01:36:46 2015 +0200
+++ b/server/src/app/Repositories/DocumentRepository.php Mon Oct 05 17:02:10 2015 +0200
@@ -1,10 +1,24 @@
<?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();
}