Completed
Push — master ( a179cf...590e45 )
by Claude
04:15
created

WebCompleteAuthorizeResponse   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 83.33%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 32
ccs 10
cts 12
cp 0.8333
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getTransaction() 0 4 1
A getPayment() 0 4 1
A getAuthorization() 0 4 1
A getPrivateData() 0 4 1
A getAuthentication() 0 4 1
A getTransactionId() 0 4 1
1
<?php
2
3
/*
4
 * WebMoney driver for the Omnipay PHP payment processing library
5
 *
6
 * @link      https://github.com/ck-developer/omnipay-payline
7
 * @package   omnipay-payline
8
 * @license   MIT
9
 * @copyright Copyright (c) 2016 Claude Khedhiri <[email protected]>
10
 */
11
12
namespace Omnipay\Payline\Message;
13
14
/**
15
 * WebCaptureResponse.
16
 */
17
class WebCompleteAuthorizeResponse extends AbstractResponse
18
{
19 3
    public function getTransaction()
20
    {
21 3
        return $this->data->transaction;
22
    }
23
24 3
    public function getPayment()
25
    {
26 3
        return $this->data->payment;
27
    }
28
29 3
    public function getAuthorization()
30
    {
31 3
        return $this->data->authorization;
32
    }
33
34
    public function getPrivateData()
35
    {
36
        return (array) $this->data->privateDataList;
37
    }
38
39 3
    public function getAuthentication()
40
    {
41 3
        return $this->data->authentication3DSecure;
42
    }
43
44 3
    public function getTransactionId()
45
    {
46 3
        return $this->data->transaction->id;
47
    }
48
}
49