PurchaseResponse::isRedirect()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
ccs 1
cts 1
cp 1
crap 1
1
<?php
2
3
/*
4
 * eCoin driver for Omnipay PHP payment library
5
 *
6
 * @link      https://github.com/hiqdev/omnipay-ecoin
7
 * @package   omnipay-ecoin
8
 * @license   MIT
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace Omnipay\eCoin\Message;
13
14
use Omnipay\Common\Message\AbstractResponse;
15
use Omnipay\Common\Message\RedirectResponseInterface;
16
17
/**
18
 * eCoin Purchase Response.
19
 */
20
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
21
{
22
    protected $_redirect = 'https://ecoin.cc/account/mpay/';
23 1
24
    public function isSuccessful()
25 1
    {
26
        return false;
27
    }
28 1
29
    public function isRedirect()
30 1
    {
31
        return true;
32
    }
33 1
34
    public function getRedirectUrl()
35 1
    {
36
        return $this->_redirect;
37
    }
38 1
39
    public function getRedirectMethod()
40 1
    {
41
        return 'POST';
42
    }
43 1
44
    public function getRedirectData()
45 1
    {
46
        return $this->data;
47
    }
48
}
49