Passed
Push — develop ( 2d7b42...b3143e )
by Brent
03:12
created

RuntimeHeaderCompiler::compile()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Brendt\Stitcher\Site\Http;
4
5
use Brendt\Stitcher\Site\Page;
6
7
class RuntimeHeaderCompiler implements HeaderCompiler
8
{
9
    public function compilePage(Page $page) : void {
10
        foreach ($page->getHeaders() as $header) {
11
            header((string) $header);
12
        }
13
    }
14
}
15