AuthorizeCaptureService::authorize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
class AuthorizeCaptureService extends PaymentService{
4
5
	/**
6
	 * Initiate the authorisation process for on-site and off-site gateways.
7
	 * @param  array $data returnUrl/cancelUrl + customer creditcard and billing/shipping details.
8
	 * @return ResponseInterface omnipay's response class, specific to the chosen gateway.
9
	 */
10
	public function authorize($data = array()) {
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
		//TODO
12
	}
13
14
	/**
15
	 * Complete authorisation, after off-site external processing.
16
	 * This is ususally only called by PaymentGatewayController.
17
	 * @return PaymentResponse encapsulated response info
18
	 */
19
	public function completeAuthorize() {
20
		//TODO
21
	}
22
23
	/**
24
	 * Do the capture of money on authorised credit card. Money exchanges hands.
25
	 * @return PaymentResponse encapsulated response info
26
	 */
27
	public function capture() {
28
		//TODO
29
	}
30
31
}
32