KeyValue::setValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Maikuro\DistributedConfigurationBundle\Model;
4
5
use JMS\Serializer\Annotation\AccessorOrder;
6
use JMS\Serializer\Annotation\ExclusionPolicy;
7
use JMS\Serializer\Annotation\Expose;
8
9
/**
10
 * Class KeyValue.
11
 *
12
 * @ExclusionPolicy("all")
13
 * @AccessorOrder("custom", custom = {"key", "value"})
14
 */
15
class KeyValue
16
{
17
    /**
18
     * $key.
19
     *
20
     * @var string
21
     * @Expose
22
     */
23
    private $key;
24
25
    /**
26
     * $value.
27
     *
28
     * @var string
29
     * @Expose
30
     */
31
    private $value;
32
33
    /**
34
     * setKey.
35
     *
36
     * @param string $key
37
     *
38
     * @return $this
39
     */
40
    public function setKey($key)
41
    {
42
        $this->key = $key;
43
44
        return $this;
45
    }
46
47
    /**
48
     * setValue.
49
     *
50
     * @param string $value
51
     *
52
     * @return $this
53
     */
54
    public function setValue($value)
55
    {
56
        $this->value = $value;
57
58
        return $this;
59
    }
60
61
    /**
62
     * getValue.
63
     *
64
     * @return string
65
     */
66
    public function getValue()
67
    {
68
        return $this->value;
69
    }
70
71
    /**
72
     * getKey.
73
     *
74
     * @return string
75
     */
76
    public function getKey()
77
    {
78
        return $this->key;
79
    }
80
}
81