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

ParsingException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Http\Header\Parser;
6
7
use Throwable;
8
9
final class ParsingException extends \Exception
10
{
11
    private string $value;
12
    private int $position;
13 81
    public function __construct(string $value, int $position, $message = '', $code = 0, Throwable $previous = null)
14
    {
15 81
        $this->value = $value;
16 81
        $this->position = $position;
17 81
        parent::__construct($message, $code, $previous);
18 81
    }
19
}
20