PluginProbe
Bookit — Booking & Appointment Calendar / 2.6.0.5
Bookit — Booking & Appointment Calendar v2.6.0.5
2.6.0.5 2.6.0.4 2.6.0.3 2.6.0.2 2.6.0.1 2.6.0 trunk 1.2 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 All 62 releases
bookit / src / Bookit / Gateways / Contracts / Gateway_Interface.php

Gateway_Interface.php in Bookit — Booking & Appointment Calendar 2.6.0.5, at src/Bookit/Gateways/Contracts/Gateway_Interface.php

60 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Bookit\Gateways\Contracts;
4
5 /**
6 * Gateway Interface
7 *
8 * @since 2.5.0
9 *
10 * @package Bookit\Gateways\Contracts
11 */
12 interface Gateway_Interface {
13
14 /**
15 * Get's the key for this Commerce Gateway.
16 *
17 * @since 2.5.0
18 *
19 * @return string What is the Key used.
20 */
21 public static function get_key();
22
23 /**
24 * Get the label for this Commerce Gateway.
25 *
26 * @since 2.5.0
27 *
28 * @return string What label we are using for this gateway.
29 */
30 public static function get_label();
31
32 /**
33 * Determine whether the gateway should be shown as an available gateway.
34 *
35 * @since 2.5.0
36 *
37 * @return bool Whether the gateway should be shown as an available gateway.
38 */
39 public static function should_show();
40
41 /**
42 * Register the gateway for Bookit Payment.
43 *
44 * @since 2.5.0
45 *
46 * @param array $gateways The list of registered Bookit Payment gateways.
47 *
48 * @return Abstract_Gateway[] The list of registered Bookit Payment gateways.
49 */
50 public function register_gateway( array $gateways );
51
52 /**
53 * Get all the admin notices.
54 *
55 * @since 2.5.0.
56 *
57 * @return array
58 */
59 public function get_admin_notices();
60 }