Code Duplication    Length = 120-120 lines in 3 locations

lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php 1 location

@@ 33-152 (lines=120) @@
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_CashOnDelivery
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::CASHONDELIVERY;
39
40
    /** @var string */
41
    protected $active = '';
42
43
    /** @var string */
44
    protected $newOrderStatus = '';
45
46
    /** @var string */
47
    protected $countries = '';
48
49
    /** @var string */
50
    protected $authorization = '';
51
52
    /** @var string */
53
    protected $mode = '';
54
55
56
    /**
57
     * @param string $active
58
     */
59
    public function setActive( $active)
60
    {
61
        $this->active = $active;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getActive()
68
    {
69
        return $this->active;
70
    }
71
72
    /**
73
     * @param string $authorization
74
     */
75
    public function setAuthorization( $authorization)
76
    {
77
        $this->authorization = $authorization;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getAuthorization()
84
    {
85
        return $this->authorization;
86
    }
87
88
    /**
89
     * @param string $countries
90
     */
91
    public function setCountries( $countries)
92
    {
93
        $this->countries = $countries;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getCountries()
100
    {
101
        return $this->countries;
102
    }
103
104
105
    /**
106
     * @param string $mode
107
     */
108
    public function setMode( $mode)
109
    {
110
        $this->mode = $mode;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getMode()
117
    {
118
        return $this->mode;
119
    }
120
121
    /**
122
     * @param string $newOrderStatus
123
     */
124
    public function setNewOrderStatus( $newOrderStatus)
125
    {
126
        $this->newOrderStatus = $newOrderStatus;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getNewOrderStatus()
133
    {
134
        return $this->newOrderStatus;
135
    }
136
137
    /**
138
     * @return string
139
     */
140
    public function getClearingType()
141
    {
142
        return $this->key;
143
    }
144
145
    /**
146
         * @return string
147
         */
148
        public function getKey()
149
        {
150
            return $this->key;
151
        }
152
}
153

lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Invoice.php 1 location

@@ 33-152 (lines=120) @@
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_Invoice
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::INVOICE;
39
40
    /** @var string */
41
    protected $active = '';
42
43
    /** @var string */
44
    protected $newOrderStatus = '';
45
46
    /** @var string */
47
    protected $countries = '';
48
49
    /** @var string */
50
    protected $authorization = '';
51
52
    /** @var string */
53
    protected $mode = '';
54
55
56
    /**
57
     * @param string $active
58
     */
59
    public function setActive($active)
60
    {
61
        $this->active = $active;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getActive()
68
    {
69
        return $this->active;
70
    }
71
72
    /**
73
     * @param string $authorization
74
     */
75
    public function setAuthorization($authorization)
76
    {
77
        $this->authorization = $authorization;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getAuthorization()
84
    {
85
        return $this->authorization;
86
    }
87
88
    /**
89
     * @param string $countries
90
     */
91
    public function setCountries($countries)
92
    {
93
        $this->countries = $countries;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getCountries()
100
    {
101
        return $this->countries;
102
    }
103
104
105
    /**
106
     * @param string $mode
107
     */
108
    public function setMode($mode)
109
    {
110
        $this->mode = $mode;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getMode()
117
    {
118
        return $this->mode;
119
    }
120
121
    /**
122
     * @param string $newOrderStatus
123
     */
124
    public function setNewOrderStatus($newOrderStatus)
125
    {
126
        $this->newOrderStatus = $newOrderStatus;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getNewOrderStatus()
133
    {
134
        return $this->newOrderStatus;
135
    }
136
137
    /**
138
     * @return string
139
     */
140
    public function getClearingType()
141
    {
142
        return $this->key;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getKey()
149
    {
150
        return $this->key;
151
    }
152
}
153

lib/Payone/Settings/Data/ConfigFile/PaymentMethod/PaymentGuaranteeInvoice.php 1 location

@@ 33-152 (lines=120) @@
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_PaymentGuaranteeInvoice
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::PAYMENTGUARANTEEINVOICE;
39
40
    /** @var string */
41
    protected $active = '';
42
43
    /** @var string */
44
    protected $newOrderStatus = '';
45
46
    /** @var string */
47
    protected $countries = '';
48
49
    /** @var string */
50
    protected $authorization = '';
51
52
    /** @var string */
53
    protected $mode = '';
54
55
56
    /**
57
     * @param string $active
58
     */
59
    public function setActive($active)
60
    {
61
        $this->active = $active;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getActive()
68
    {
69
        return $this->active;
70
    }
71
72
    /**
73
     * @param string $authorization
74
     */
75
    public function setAuthorization($authorization)
76
    {
77
        $this->authorization = $authorization;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getAuthorization()
84
    {
85
        return $this->authorization;
86
    }
87
88
    /**
89
     * @param string $countries
90
     */
91
    public function setCountries($countries)
92
    {
93
        $this->countries = $countries;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getCountries()
100
    {
101
        return $this->countries;
102
    }
103
104
105
    /**
106
     * @param string $mode
107
     */
108
    public function setMode($mode)
109
    {
110
        $this->mode = $mode;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getMode()
117
    {
118
        return $this->mode;
119
    }
120
121
    /**
122
     * @param string $newOrderStatus
123
     */
124
    public function setNewOrderStatus($newOrderStatus)
125
    {
126
        $this->newOrderStatus = $newOrderStatus;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getNewOrderStatus()
133
    {
134
        return $this->newOrderStatus;
135
    }
136
137
    /**
138
     * @return string
139
     */
140
    public function getClearingType()
141
    {
142
        return $this->key;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getKey()
149
    {
150
        return $this->key;
151
    }
152
}
153