1+ <?php
2+
3+ namespace CodeOfDigital \CacheRepository \Contracts ;
4+
5+ use Closure ;
6+
7+ interface RepositoryInterface
8+ {
9+ public function pluck ($ column , $ key = null );
10+
11+ public function sync ($ id , $ relation , $ attributes , $ detaching = true );
12+
13+ public function syncWithoutDetaching ($ id , $ relation , $ attributes );
14+
15+ public function all ($ columns = ['* ' ]);
16+
17+ public function paginate ($ limit = null , $ columns = ['* ' ]);
18+
19+ public function simplePaginate ($ limit = null , $ columns = ['* ' ]);
20+
21+ public function find ($ id , $ columns = ['* ' ]);
22+
23+ public function findByField ($ field , $ value , $ columns = ['* ' ]);
24+
25+ public function findWhere (array $ where , $ columns = ['* ' ]);
26+
27+ public function findWhereIn ($ field , array $ values , $ columns = ['* ' ]);
28+
29+ public function findWhereNotIn ($ field , array $ values , $ columns = ['* ' ]);
30+
31+ public function findWhereBetween ($ field , array $ values , $ columns = ['* ' ]);
32+
33+ public function create (array $ attributes );
34+
35+ public function update (array $ attributes , $ id );
36+
37+ public function updateOrCreate (array $ attributes , array $ values = []);
38+
39+ public function delete (int $ id );
40+
41+ public function orderBy ($ column , $ direction = 'asc ' );
42+
43+ public function with ($ relations );
44+
45+ public function whereHas (string $ relation , Closure $ closure );
46+
47+ public function withCount ($ relations );
48+
49+ public function hidden (array $ fields );
50+
51+ public function visible (array $ fields );
52+
53+ public function scopeQuery (Closure $ scope );
54+
55+ public function resetScope ();
56+
57+ public function firstOrNew (array $ attributes = []);
58+
59+ public function firstOrCreate (array $ attributes = []);
60+
61+ public static function __callStatic ($ method , $ arguments );
62+
63+ public function __call ($ method , $ arguments );
64+ }
0 commit comments