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

WebCompleteAuthorizeResponse::getAuthentication()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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