AuthorizeCaptureService   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 3 1
A completeAuthorize() 0 3 1
A capture() 0 3 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