CompletePurchaseRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 4
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 4 1
A sendData() 0 4 1
1
<?php
2
3
namespace Omnipay\EpsomAdelante\Message;
4
5
/**
6
 * Epsom connector to Adelante Complete Purchase Request
7
 */
8
class CompletePurchaseRequest extends PurchaseRequest
9
{
10 4
    public function getData()
11
    {
12 4
        return $this->httpRequest->request->all();
13
    }
14
15 4
    public function sendData($data)
16
    {
17 4
        return $this->response = new CompletePurchaseResponse($this, $data);
18
    }
19
}
20