Completed
Push — master ( 8ff95d...7009b3 )
by Dominik
03:25
created

XmlAuthorizationResponse::getUppTransactionId()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
crap 6
1
<?php
2
/**
3
 * w-vision
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the GNU General Public License version 3 (GPLv3)
8
 * For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
9
 * files that are distributed with this source code.
10
 *
11
 * @copyright  Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12
 * @license    GNU General Public License version 3 (GPLv3)
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
    public function getUppTransactionId()
28
    {
29
        if (isset($this->data['response'])) {
30
            return $this->data['response']['uppTransactionId'];
31
        }
32
33
        return null;
34
    }
35
}
36