Completed
Push — master ( fc2b8b...a482e0 )
by Sebastian
03:04
created

Header::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
namespace Kartenmacherei\RestFramework\Request\Header;
3
4
class Header
5
{
6
    /**
7
     * @var string
8
     */
9
    private $name;
10
11
    /**
12
     * @var string
13
     */
14
    private $value;
15
16
    /**
17
     * @param string $name
18
     * @param string $value
19
     */
20
    public function __construct(string $name, string $value)
21
    {
22
        $this->name = $name;
23
        $this->value = $value;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getName(): string
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getValue(): string
38
    {
39
        return $this->value;
40
    }
41
}
42