NormalizedValueVariant::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Ionut\Sylar;
4
5
6
class NormalizedValueVariant
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $value;
12
13
    /**
14
     * @param string $value
15
     */
16
    public function __construct($value)
17
    {
18
        $this->value = $value;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getValue()
25
    {
26
        return $this->value;
27
    }
28
29
    /**
30
     * @param string $value
31
     */
32
    public function setValue($value)
33
    {
34
        $this->value = $value;
35
    }
36
}