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

ParsingException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 5
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
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