Created
March 21, 2018 14:05
-
-
Save jsdecena/255207ff35a090aaebda9e29a168f714 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Shop\Base\Interfaces; | |
interface BaseRepositoryInterface | |
{ | |
public function create(array $attributes); | |
public function update(array $attributes, int $id); | |
public function all($columns = array('*'), string $orderBy = 'id', string $sortBy = 'desc'); | |
public function find(int $id); | |
public function findOneOrFail(int $id); | |
public function findBy(array $data); | |
public function findOneBy(array $data); | |
public function findOneByOrFail(array $data); | |
public function paginateArrayResults(array $data, int $perPage = 50); | |
public function delete(int $id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment