Header   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
1
<?php
2
3
namespace Raidros\Storer;
4
5
class Header
6
{
7
    protected $header;
8
9
    /**
10
     * Configure a new api header.
11
     *
12
     * @param mixed $value
13
     */
14 15
    public function __construct($value)
15
    {
16 15
        $this->header = $value;
17 15
    }
18
19
    /**
20
     * Return the header data.
21
     *
22
     * @return mixed
23
     */
24 12
    public function get()
25
    {
26 12
        return $this->header;
27
    }
28
}
29