Passed
Push — 1.x ( be02b7...4dda68 )
by Akihito
02:56
created

Header   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Sunday\Provide\Transfer;
6
7
use BEAR\Resource\ResourceObject;
8
9
final class Header implements HeaderInterface
10
{
11
    public function __invoke(ResourceObject $ro, array $server) : void
12
    {
13
        foreach ($ro->headers as $label => $value) {
14
            header("{$label}: {$value}", false);
15
        }
16
    }
17
}
18