Completed
Push — master ( e6924a...b3599f )
by Dominik
02:35
created

XmlAuthorizationResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 75%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUppTransactionId() 0 8 2
1
<?php
2
/**
3
 * w-vision
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the MIT License
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that are distributed with this source code.
10
 *
11
 * @copyright  Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12
 * @license    MIT License
13
 */
14
15
namespace Omnipay\Datatrans\Message;
16
17
use Omnipay\Common\Message\RedirectResponseInterface;
18
19
/**
20
 * PayPal REST Authorize Response
21
 */
22
class XmlAuthorizationResponse extends XmlResponse implements RedirectResponseInterface
23
{
24
    /**
25
     * @return null
26
     */
27 2
    public function getUppTransactionId()
28
    {
29 2
        if (isset($this->data['response'])) {
30 2
            return $this->data['response']['uppTransactionId'];
31
        }
32
33
        return null;
34
    }
35
}
36