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

Header   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getValue() 0 4 1
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