PluginProbe
Booking for Appointments and Events Calendar – Amelia / 2.4.2
Booking for Appointments and Events Calendar – Amelia v2.4.2
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 All 59 releases
ameliabooking / src / Domain / Repository / BaseRepositoryInterface.php

BaseRepositoryInterface.php in Booking for Appointments and Events Calendar – Amelia 2.4.2, at src/Domain/Repository/BaseRepositoryInterface.php

61 lines 894 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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