Header::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 3
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
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
    /**
12
     * {@inheritDoc}
13
     */
14
    public function __invoke(ResourceObject $ro, array $server): array
15
    {
16
        unset($server);
17
18
        return $ro->headers;
19
    }
20
}
21