Completed
Push — master ( 95df18...b22833 )
by Florian
12:05
created

Creditcard::setHideCvc()   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_Creditcard
0 ignored issues
show
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...
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...
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::CREDITCARD;
39
40
    /** @var string */
41
    protected $cvc2 = '';
42
43
    /** @var string */
44
    protected $hide_cvc = '';
45
46
    /**
47
     * @return string
48
     */
49
    public function getClearingType()
50
    {
51
        return $this->key;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getKey()
58
    {
59
        return $this->key;
60
    }
61
62
    /**
63
     * @param string $cvc2
64
     */
65
    public function setCvc2($cvc2)
66
    {
67
        $this->cvc2 = $cvc2;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getCvc2()
74
    {
75
        return $this->cvc2;
76
    }
77
78
    /**
79
     * @param $hide_cvc
80
     */
81
    public function setHideCvc($hide_cvc)
82
    {
83
        $this->hide_cvc = $hide_cvc;
84
    }
85
86
    /**
87
     * @return string
88
     */
89
    public function getHideCvc()
90
    {
91
        return $this->hide_cvc;
92
    }
93
94
    /**
95
     * @param $value
96
     */
97
    public function addHideCvc($value)
98
    {
99
        $this->hide_cvc[] = $value;
100
    }
101
102
103
}
104