Bookable
6 months ago
Booking
6 months ago
Coupon
6 months ago
CustomField
6 months ago
Gallery
6 months ago
Location
7 years ago
Notification
1 year ago
User
2 years ago
BaseRepositoryInterface.php
7 years ago
BaseRepositoryInterface.php
61 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Domain\Repository; |
| 4 | |
| 5 | /** |
| 6 | * Interface BaseRepositoryInterface |
| 7 | * |
| 8 | * @package AmeliaBooking\Domain\Repository |
| 9 | */ |
| 10 | interface BaseRepositoryInterface |
| 11 | { |
| 12 | /** |
| 13 | * @param int $id |
| 14 | * |
| 15 | * @return mixed |
| 16 | */ |
| 17 | public function getById($id); |
| 18 | |
| 19 | /** |
| 20 | * @return mixed |
| 21 | */ |
| 22 | public function getAll(); |
| 23 | |
| 24 | /** |
| 25 | * @param $entity |
| 26 | * |
| 27 | * @return mixed |
| 28 | */ |
| 29 | public function add($entity); |
| 30 | |
| 31 | /** |
| 32 | * @param int $id |
| 33 | * @param $entity |
| 34 | * |
| 35 | * @return mixed |
| 36 | */ |
| 37 | public function update($id, $entity); |
| 38 | |
| 39 | /** |
| 40 | * @param $id |
| 41 | * |
| 42 | * @return mixed |
| 43 | */ |
| 44 | public function delete($id); |
| 45 | |
| 46 | /** |
| 47 | * @return bool |
| 48 | */ |
| 49 | public function beginTransaction(); |
| 50 | |
| 51 | /** |
| 52 | * @return bool |
| 53 | */ |
| 54 | public function commit(); |
| 55 | |
| 56 | /** |
| 57 | * @return bool |
| 58 | */ |
| 59 | public function rollback(); |
| 60 | } |
| 61 |