Completed
Pull Request — master (#74)
by Raúl
04:10 queued 02:21
created

Header::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sepia\PoParser\Catalog;
4
5
class Header
6
{
7
    /** @var string */
8
    protected $id;
9
10
    /** @var string */
11
    protected $value;
12
13
    /**
14
     * @param string $id
15
     * @param string $value
16
     */
17
    public function __construct($id, $value)
18
    {
19
        $this->id = $id;
20
        $this->value = $value;
21
    }
22
23
    public function setHeaders(array $headers)
24
    {
25
        $this->headers = $headers;
0 ignored issues
show
Bug Best Practice introduced by
The property headers does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getValue()
40
    {
41
        return $this->value;
42
    }
43
}
44