Completed
Push — master ( adaa8a...86d4e5 )
by Hannes
13s queued 10s
created

RatepayInvoicing::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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 to newer
12
 * versions in the future. If you wish to customize Payone for your
13
 * needs please refer to http://www.payone.de for more information.
14
 *
15
 * @category        Payone
16
 * @package         Payone_Settings
17
 * @subpackage      Data
18
 * @copyright       Copyright (c) 2019 <[email protected]> - www.fatchip.com
19
 * @author          Vincent Boulanger <[email protected]>
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.fatchip.com
22
 */
23 View Code Duplication
class Payone_Settings_Data_ConfigFile_PaymentMethod_RatepayInvoicing
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
24
    extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract
25
    implements Payone_Settings_Data_ConfigFile_Interface
26
{
27
    /** @var string */
28
    protected $key = Payone_Enum_ClearingType::RATEPAYINVOICING;
29
    protected $ratepay_config = array();
30
31
    /**
32
     * @return string
33
     */
34
    public function getKey()
35
    {
36
        return $this->key;
37
    }
38
39
    /**
40
     * @param array $ratepay_config
41
     */
42
    public function setRatepayConfig($ratepay_config)
43
    {
44
        $this->ratepay_config = $ratepay_config;
45
    }
46
47
    /**
48
     * @return array
49
     */
50
    public function getRatepayConfig()
51
    {
52
        return $this->ratepay_config;
53
    }
54
55
    /**
56
     * @param $value
57
     */
58
    public function addRatepayConfig($value)
59
    {
60
        $this->ratepay_config[] = $value;
61
    }
62
63
}
64