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) 2017 <[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
|
|
View Code Duplication |
class Payone_Settings_Data_ConfigFile_PaymentMethod_AmazonPay |
|
|
|
|
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::AMAZONPAY; |
29
|
|
|
/** @var string */ |
30
|
|
|
protected $active = ''; |
31
|
|
|
/** @var string */ |
32
|
|
|
protected $newOrderStatus = ''; |
33
|
|
|
/** @var string */ |
34
|
|
|
protected $countries = ''; |
35
|
|
|
/** @var string */ |
36
|
|
|
protected $authorization = ''; |
37
|
|
|
/** @var string */ |
38
|
|
|
protected $mode = ''; |
39
|
|
|
/** |
40
|
|
|
* @param string $active |
41
|
|
|
*/ |
42
|
|
|
public function setActive($active) |
43
|
|
|
{ |
44
|
|
|
$this->active = $active; |
45
|
|
|
} |
46
|
|
|
/** |
47
|
|
|
* @return string |
48
|
|
|
*/ |
49
|
|
|
public function getActive() |
50
|
|
|
{ |
51
|
|
|
return $this->active; |
52
|
|
|
} |
53
|
|
|
/** |
54
|
|
|
* @param string $authorization |
55
|
|
|
*/ |
56
|
|
|
public function setAuthorization($authorization) |
57
|
|
|
{ |
58
|
|
|
$this->authorization = $authorization; |
59
|
|
|
} |
60
|
|
|
/** |
61
|
|
|
* @return string |
62
|
|
|
*/ |
63
|
|
|
public function getAuthorization() |
64
|
|
|
{ |
65
|
|
|
return $this->authorization; |
66
|
|
|
} |
67
|
|
|
/** |
68
|
|
|
* @param string $countries |
69
|
|
|
*/ |
70
|
|
|
public function setCountries($countries) |
71
|
|
|
{ |
72
|
|
|
$this->countries = $countries; |
73
|
|
|
} |
74
|
|
|
/** |
75
|
|
|
* @return string |
76
|
|
|
*/ |
77
|
|
|
public function getCountries() |
78
|
|
|
{ |
79
|
|
|
return $this->countries; |
80
|
|
|
} |
81
|
|
|
/** |
82
|
|
|
* @param string $mode |
83
|
|
|
*/ |
84
|
|
|
public function setMode($mode) |
85
|
|
|
{ |
86
|
|
|
$this->mode = $mode; |
87
|
|
|
} |
88
|
|
|
/** |
89
|
|
|
* @return string |
90
|
|
|
*/ |
91
|
|
|
public function getMode() |
92
|
|
|
{ |
93
|
|
|
return $this->mode; |
94
|
|
|
} |
95
|
|
|
/** |
96
|
|
|
* @param string $newOrderStatus |
97
|
|
|
*/ |
98
|
|
|
public function setNewOrderStatus($newOrderStatus) |
99
|
|
|
{ |
100
|
|
|
$this->newOrderStatus = $newOrderStatus; |
101
|
|
|
} |
102
|
|
|
/** |
103
|
|
|
* @return string |
104
|
|
|
*/ |
105
|
|
|
public function getNewOrderStatus() |
106
|
|
|
{ |
107
|
|
|
return $this->newOrderStatus; |
108
|
|
|
} |
109
|
|
|
/** |
110
|
|
|
* @return string |
111
|
|
|
*/ |
112
|
|
|
public function getClearingType() |
113
|
|
|
{ |
114
|
|
|
return $this->key; |
115
|
|
|
} |
116
|
|
|
/** |
117
|
|
|
* @return string |
118
|
|
|
*/ |
119
|
|
|
public function getKey() |
120
|
|
|
{ |
121
|
|
|
return $this->key; |
122
|
|
|
} |
123
|
|
|
} |
124
|
|
|
|
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.