Completed
Pull Request — master (#216)
by
unknown
04:11
created

Payone_Api_Request_MasterpassSetCheckout   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 85
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 1
dl 0
loc 85
c 0
b 0
f 0
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getWallettype() 0 4 1
A setWallettype() 0 4 1
A getBackurl() 0 4 1
A setBackurl() 0 4 1
A getErrorurl() 0 4 1
A setErrorurl() 0 4 1
A getSuccessurl() 0 4 1
A setSuccessurl() 0 4 1
1
<?php
2
/**
3
 *
4
 * NOTICE OF LICENSE
5
 *
6
 * This source file is subject to the GNU General Public License (GPL 3)
7
 * that is bundled with this package in the file LICENSE.txt
8
 *
9
 * DISCLAIMER
10
 *
11
 * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
 * versions in the future. If you wish to customize Payone_Core for your
13
 * needs please refer to http://www.payone.de for more information.
14
 *
15
 * @category        Payone
16
 * @package         Payone_Core_Block
17
 * @subpackage      Mastercard_Masterpass
18
 * @copyright       Copyright (c) 2018 <[email protected]> - www.fatchip.de
19
 * @author          FATCHIP GmbH <[email protected]>
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.fatchip.de
22
 */
23
24
class Payone_Api_Request_MasterpassSetCheckout
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
25
    extends Payone_Api_Request_Genericpayment
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
26
{
27
    /** @var string */
28
    protected $wallettype = null;
29
    /** @var string */
30
    protected $backurl = null;
31
    /** @var string */
32
    protected $errorurl = null;
33
    /** @var string */
34
    protected $successurl = null;
35
36
    /**
37
     * @param array $data
38
     */
39
    public function __construct(array $data = array())
40
    {
41
        $this->request = Payone_Api_Enum_RequestType::GENERICPAYMENT;
42
        parent::__construct($data);
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getWallettype()
49
    {
50
        return $this->wallettype;
51
    }
52
53
    /**
54
     * @param string $wallettype
55
     */
56
    public function setWallettype($wallettype)
57
    {
58
        $this->wallettype = $wallettype;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getBackurl()
65
    {
66
        return $this->backurl;
67
    }
68
69
    /**
70
     * @param string $backurl
71
     */
72
    public function setBackurl($backurl)
73
    {
74
        $this->backurl = $backurl;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getErrorurl()
81
    {
82
        return $this->errorurl;
83
    }
84
85
    /**
86
     * @param string $errorurl
87
     */
88
    public function setErrorurl($errorurl)
89
    {
90
        $this->errorurl = $errorurl;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getSuccessurl()
97
    {
98
        return $this->successurl;
99
    }
100
101
    /**
102
     * @param string $successurl
103
     */
104
    public function setSuccessurl($successurl)
105
    {
106
        $this->successurl = $successurl;
107
    }
108
}
109