Completed
Pull Request — develop (#2)
by Sebastian
02:16
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 getKey() 0 4 1
A getValue() 0 4 1
1
<?php
2
namespace DjThossi\SmokeTestingPhp\ValueObject;
3
4
class Header
5
{
6
    /**
7
     * @var HeaderKey
8
     */
9
    private $key;
10
11
    /**
12
     * @var HeaderValue
13
     */
14
    private $value;
15
16
    /**
17
     * @param HeaderKey $key
18
     * @param HeaderValue $value
19
     */
20
    public function __construct(HeaderKey $key, HeaderValue $value)
21
    {
22
        $this->key = $key;
23
        $this->value = $value;
24
    }
25
26
    /**
27
     * @return HeaderKey
28
     */
29
    public function getKey()
30
    {
31
        return $this->key;
32
    }
33
34
    /**
35
     * @return HeaderValue
36
     */
37
    public function getValue()
38
    {
39
        return $this->value;
40
    }
41
}
42