WebAuthorizeResponse   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isRedirect() 0 4 1
A getRedirectUrl() 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
 * AbstractResponse.
16
 */
17
class WebAuthorizeResponse extends AbstractResponse
18
{
19 6
    public function isRedirect()
20
    {
21 6
        return true;
22
    }
23
24 6
    public function getRedirectUrl()
25
    {
26 6
        return $this->data->redirectURL;
27
    }
28
}
29