PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.20
Booktics – Appointment Booking Calendar for Service Businesses v1.0.20
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
booktics / core / payment / payment-methods / abstract-payment-method.php

abstract-payment-method.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.20, at core/payment/payment-methods/abstract-payment-method.php

41 lines 705 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Booktics\Payment\Payment_Methods;
4
5 use Booktics\Payment\Contracts\Payment_Method_Interface;
6 use Booktics\Models\Order_Model;
7
8 abstract class Abstract_Payment_Method implements Payment_Method_Interface {
9
10 protected $id;
11 protected $name;
12 private $order;
13
14 /**
15 * Get the unique identifier for this payment method
16 *
17 * @return string
18 */
19 public function get_id(): string {
20 return $this->id;
21 }
22
23 /**
24 * Get the display name of the payment method
25 *
26 * @return string
27 */
28 public function get_name(): string {
29 return $this->name;
30 }
31
32 /**
33 * Get Order
34 *
35 * @return Order_Model
36 */
37 protected function get_order() {
38 return $this->order;
39 }
40 }
41