CancelReservationRequest::get_signature_data()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 5
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Cancel reservation request
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2022 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Payments
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\Sisow;
12
13
/**
14
 * Title: Sisow cancel reservation request
15
 * Description:
16
 * Copyright: 2005-2022 Pronamic
17
 * Company: Pronamic
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 2.0.1
21
 * @since   2.0.1
22
 */
23
class CancelReservationRequest extends Request {
24
	/**
25
	 * Get signature data.
26
	 *
27
	 * @return array<int,int|string|null>
28
	 */
29
	public function get_signature_data() {
30
		return array(
31
			$this->get_parameter( 'trxid' ),
32
33
			/*
34
			 * Indien er geen gebruik wordt gemaakt van de shopid dan kunt u deze weglaten uit de berekening.
35
			 */
36
			$this->get_parameter( 'shopid' ),
37
38
			$this->get_parameter( 'merchantid' ),
39
		);
40
	}
41
}
42