Code Duplication    Length = 41-41 lines in 2 locations

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

@@ 23-63 (lines=41) @@
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.fatchip.com
22
 */
23
class Payone_Settings_Data_ConfigFile_PaymentMethod_Ratepay
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::RATEPAY;
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

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

@@ 23-63 (lines=41) @@
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.fatchip.com
22
 */
23
class Payone_Settings_Data_ConfigFile_PaymentMethod_RatepayDirectDebit
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::RATEPAYDIRECTDEBIT;
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