AuthenticationValue   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 109
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 109
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 4 1
A setKey() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
A getType() 0 4 1
A setType() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A isEnabled() 0 4 1
A setEnabled() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the PostmanGeneratorBundle package.
5
 *
6
 * (c) Vincent Chalamon <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace PostmanGeneratorBundle\Model;
13
14
class AuthenticationValue
15
{
16
    const TYPE_TEXT = 'text';
17
18
    /**
19
     * @var string
20
     */
21
    private $key;
22
23
    /**
24
     * @var string
25
     */
26
    private $value;
27
28
    /**
29
     * @var string
30
     */
31
    private $type = self::TYPE_TEXT;
32
33
    /**
34
     * @var string
35
     */
36
    private $name;
37
38
    /**
39
     * @var bool
40
     */
41
    private $enabled = true;
42
43
    /**
44
     * @return string
45
     */
46
    public function getKey()
47
    {
48
        return $this->key;
49
    }
50
51
    /**
52
     * @param string $key
53
     */
54
    public function setKey($key)
55
    {
56
        $this->key = $key;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getValue()
63
    {
64
        return $this->value;
65
    }
66
67
    /**
68
     * @param string $value
69
     */
70
    public function setValue($value)
71
    {
72
        $this->value = $value;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getType()
79
    {
80
        return $this->type;
81
    }
82
83
    /**
84
     * @param string $type
85
     */
86
    public function setType($type)
87
    {
88
        $this->type = $type;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getName()
95
    {
96
        return $this->name;
97
    }
98
99
    /**
100
     * @param string $name
101
     */
102
    public function setName($name)
103
    {
104
        $this->name = $name;
105
    }
106
107
    /**
108
     * @return bool
109
     */
110
    public function isEnabled()
111
    {
112
        return $this->enabled;
113
    }
114
115
    /**
116
     * @param bool $enabled
117
     */
118
    public function setEnabled($enabled)
119
    {
120
        $this->enabled = $enabled;
121
    }
122
}
123