PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.28
Booktics – Appointment Booking Calendar for Service Businesses v1.0.28
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | base/contracts/database-interface.php +52 -52 1.0.1 → 1.0.28 View file →
@@ -1,52 +1,52 @@
1 -<?php
2 -
3 -namespace Booktics\Contracts;
4 -
5 -/**
6 - * Contract for WP Database
7 - *
8 - * @package Booktics/Contracts
9 - */
10 -interface Database_Interface {
11 -
12 - /**
13 - * Begin database transaction
14 - *
15 - * @return void
16 - */
17 - public function begin_transaction(): void;
18 -
19 - /**
20 - * Commit transactions to database
21 - *
22 - * @return void
23 - */
24 - public function commit(): void;
25 -
26 - /**
27 - * Rollback uncommited transactions
28 - *
29 - * @return void
30 - */
31 - public function roll_back(): void;
32 -
33 - /**
34 - * Delete records of specific table
35 - *
36 - * @param string $table
37 - * @param array $where
38 - *
39 - * @return void
40 - */
41 - public function delete( string $table, array $where ): void;
42 -
43 - /**
44 - * Batch insert records
45 - *
46 - * @param string $table
47 - * @param array $records
48 - *
49 - * @return void
50 - */
51 - public function insert_batch( string $table, array $records ): void;
52 -}
1 +<?php
2 +
3 +namespace Booktics\Contracts;
4 +
5 +/**
6 + * Contract for WP Database
7 + *
8 + * @package Booktics/Contracts
9 + */
10 +interface Database_Interface {
11 +
12 + /**
13 + * Begin database transaction
14 + *
15 + * @return void
16 + */
17 + public function begin_transaction(): void;
18 +
19 + /**
20 + * Commit transactions to database
21 + *
22 + * @return void
23 + */
24 + public function commit(): void;
25 +
26 + /**
27 + * Rollback uncommited transactions
28 + *
29 + * @return void
30 + */
31 + public function roll_back(): void;
32 +
33 + /**
34 + * Delete records of specific table
35 + *
36 + * @param string $table
37 + * @param array $where
38 + *
39 + * @return void
40 + */
41 + public function delete( string $table, array $where ): void;
42 +
43 + /**
44 + * Batch insert records
45 + *
46 + * @param string $table
47 + * @param array $records
48 + *
49 + * @return void
50 + */
51 + public function insert_batch( string $table, array $records ): void;
52 +}