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

XmlAuthorizationResponse::getUppTransactionId()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 3
cts 4
cp 0.75
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
crap 2.0625
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