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

Header::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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