Passed
Pull Request — master (#22)
by Aleksei
02:39
created

SortedValue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 8
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A createHeader() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Http\Header\Value\Unnamed;
6
7
use Yiisoft\Http\Header\SortableHeader;
8
use Yiisoft\Http\Header\Internal\WithParamsHeaderValue;
9
10
final class SortedValue extends WithParamsHeaderValue
11
{
12
    protected const PARSING_LIST = true;
13
    protected const PARSING_Q_PARAM = true;
14
15
    public static function createHeader(string $headerName = 'Undefined'): SortableHeader
16
    {
17
        return new SortableHeader($headerName);
18
    }
19
}
20