Parameter::setValue()   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 Jalle19\HaPHProxy\Parameter;
4
5
/**
6
 * Class Parameter
7
 * @package Jalle19\HaPHProxy\Parameter
8
 * @author  Sam Stenvall <[email protected]>
9
 * @license GNU General Public License 2.0+
10
 */
11
class Parameter
12
{
13
14
	/**
15
	 * @var string
16
	 */
17
	private $name;
18
19
	/**
20
	 * @var mixed
21
	 */
22
	private $value;
23
24
25
	/**
26
	 * Parameter constructor.
27
	 *
28
	 * @param string     $name
29
	 * @param mixed|null $value (optional)
30
	 */
31
	public function __construct($name, $value = null)
32
	{
33
		$this->name  = $name;
34
		$this->value = $value;
35
	}
36
37
38
	/**
39
	 * @return string
40
	 */
41
	public function getName()
42
	{
43
		return $this->name;
44
	}
45
46
47
	/**
48
	 * @param string $name
49
	 */
50
	public function setName($name)
51
	{
52
		$this->name = $name;
53
	}
54
55
56
	/**
57
	 * @return mixed
58
	 */
59
	public function getValue()
60
	{
61
		return $this->value;
62
	}
63
64
65
	/**
66
	 * @param mixed $value
67
	 */
68
	public function setValue($value)
69
	{
70
		$this->value = $value;
71
	}
72
73
}
74