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

Payone_Api_Request_MasterpassGetCheckout   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 31
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getWallettype() 0 4 1
A setWallettype() 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_MasterpassGetCheckout
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
30
    /**
31
     * @param array $data
32
     */
33
    public function __construct(array $data = array())
34
    {
35
        $this->request = Payone_Api_Enum_RequestType::GENERICPAYMENT;
36
        parent::__construct($data);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getWallettype()
43
    {
44
        return $this->wallettype;
45
    }
46
47
    /**
48
     * @param string $wallettype
49
     */
50
    public function setWallettype($wallettype)
51
    {
52
        $this->wallettype = $wallettype;
53
    }
54
}
55