Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. interface RepositoryContract
  4. {
  5. public function find($id, $columns = ['*'], $with = []);
  6.  
  7. public function findBy($attribute, $value, $columns = ['*'], $with = []);
  8.  
  9. public function findAll($columns = ['*'], $with = []);
  10.  
  11. public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null);
  12.  
  13. public function findWhere(array $where, $columns = ['*'], $with = []);
  14.  
  15. public function findWhereIn($attribute, array $values, $columns = ['*'], $with = []);
  16.  
  17. public function findWhereNotIn($attribute, array $values, $columns = ['*'], $with = []);
  18.  
  19. public function firstOrCreate(array $attributes);
  20.  
  21. public function update($id, array $attributes = []);
  22.  
  23. public function delete($id);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement