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 / Abstract_Settings.php

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

43 lines 676 B
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 * Abstract Settings
7 *
8 * @since 2.5.0
9 *
10 * @package Bookit\Gateways\Contracts
11 */
12 abstract class Abstract_Settings {
13
14 /**
15 * The option key for the gateway-specific sandbox.
16 *
17 * @since 2.5.0
18 *
19 * @var string
20 */
21 public static $option_sandbox;
22
23 /**
24 * Get the connection settings in the admin.
25 *
26 * @since 2.5.0
27 *
28 * @return string
29 */
30 abstract function get_connection_settings();
31
32 /**
33 * Check if this gateway is currently in test mode.
34 *
35 * @since 2.5.0
36 *
37 * @return bool
38 */
39 public function is_gateway_test_mode() {
40 return bookit_is_truthy( get_option( static::$option_sandbox ) );
41 }
42 }
43