server/src/app/Repositories/DocumentRepository.php
changeset 168 17f10b56c079
parent 125 e550b10fe3ca
child 306 3fccf43160a7
equal deleted inserted replaced
167:009efee954f7 168:17f10b56c079
     5 
     5 
     6 interface DocumentRepository {
     6 interface DocumentRepository {
     7 
     7 
     8     public function all();
     8     public function all();
     9 
     9 
    10     public function get($id);
    10     public function get($id, bool $short = false);
    11 
    11 
    12     public function save(Document $doc);
    12     public function save(Document $doc);
    13 
    13 
    14     /**
    14     /**
    15      * Paginate all document as a paginator.
    15      * Paginate all document as a paginator.