1 | <?php |
||
8 | abstract class Repository |
||
9 | { |
||
10 | public function save(Model $model): bool |
||
20 | |||
21 | public function delete(Model $model): bool |
||
31 | |||
32 | public function getAll(): Collection |
||
36 | |||
37 | /** |
||
38 | * @return \Illuminate\Database\Eloquent\Model|null |
||
39 | */ |
||
40 | public function find(int $id) |
||
44 | |||
45 | /** |
||
46 | * @return \Illuminate\Database\Eloquent\Model|null |
||
47 | */ |
||
48 | public function findOnline(int $id) |
||
52 | |||
53 | public function getAllOnline(): Collection |
||
59 | |||
60 | /** |
||
61 | * @param string $url |
||
62 | * @param array $with |
||
63 | * |
||
64 | * @return \Illuminate\Database\Eloquent\Model|null |
||
65 | */ |
||
66 | public function findByUrl(string $url, $with = []) |
||
85 | |||
86 | protected function query() |
||
90 | } |
||
91 |