Completed
Push — master ( 6da602...e92961 )
by Florian
04:20
created

Financing::setKlarnaConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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 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) 2012 <[email protected]> - www.noovias.com
19
 * @author          Matthias Walter <[email protected]>
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.noovias.com
22
 */
23
24
/**
25
 *
26
 * @category        Payone
27
 * @package         Payone_Settings
28
 * @subpackage      Data
29
 * @copyright       Copyright (c) 2012 <[email protected]> - www.noovias.com
30
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
 * @link            http://www.noovias.com
32
 */
33
class Payone_Settings_Data_ConfigFile_PaymentMethod_Financing
34
    extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract
35
    implements Payone_Settings_Data_ConfigFile_Interface
36
{
37
    /** @var string */
38
    protected $key = Payone_Enum_ClearingType::FINANCING;
39
40
    /** @var string */
41
    protected $financingType = '';
42
    protected $klarna_config = array();
43
44
    /**
45
     * @return string
46
     */
47
    public function getClearingType()
48
    {
49
        return $this->key;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getKey()
56
    {
57
        return $this->key;
58
    }
59
60
    /**
61
     * @param string $financingType
62
     */
63
    public function setFinancingType($financingType)
64
    {
65
        $this->financingType = $financingType;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getFinancingType()
72
    {
73
        return $this->financingType;
74
    }
75
76
    /**
77
     * @param array $klarna_config
78
     */
79
    public function setKlarnaConfig($klarna_config)
80
    {
81
        $this->klarna_config = $klarna_config;
82
    }
83
84
    /**
85
     * @return array
86
     */
87
    public function getKlarnaConfig()
88
    {
89
        return $this->klarna_config;
90
    }
91
92
    /**
93
     * @param $value
94
     */
95
    public function addKlarnaConfig($value)
96
    {
97
        $this->klarna_config[] = $value;
98
    }
99
}
100
 
101