Completed
Push — master ( b01ef1...6c7077 )
by
unknown
02:58
created

PaymentGuaranteeInvoice::setActive()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
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 View Code Duplication
class Payone_Settings_Data_ConfigFile_PaymentMethod_PaymentGuaranteeInvoice
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...
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
34
    extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
Coding Style introduced by
Expected 0 spaces between "Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract" and comma; 1 found
Loading history...
35
    implements Payone_Settings_Data_ConfigFile_Interface
0 ignored issues
show
Coding Style introduced by
The implements keyword must be on the same line as the class name
Loading history...
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