Parameter::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace DMT\Serializer;
4
5
/**
6
 * Class Parameter
7
 *
8
 * @package DMT\Serializer
9
 */
10
class Parameter implements ParameterInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $name = '';
16
17
    /**
18
     * @var bool|float|int|string
19
     */
20
    protected $value;
21
22
    /**
23
     * @return string
24
     */
25 26
    public function getName(): string
26
    {
27 26
        return $this->name;
28
    }
29
30
    /**
31
     * @param string $name
32
     */
33 15
    public function setName(string $name)
34
    {
35 15
        $this->name = $name;
36 15
    }
37
38
    /**
39
     * @return bool|float|int|string
40
     */
41 17
    public function getValue()
42
    {
43 17
        return $this->value;
44
    }
45
46
    /**
47
     * @param bool|float|int|string $value
48
     */
49 15
    public function setValue($value)
50
    {
51 15
        $this->value = $value;
52 15
    }
53
}
54