Completed
Pull Request — master (#18)
by Dominik
05:16
created

JsonParserException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 11
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createFromError() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\Deserialization\Decoder\Parsing;
6
7
final class JsonParserException extends \RuntimeException
8
{
9
    /**
10
     * @param string $error
11
     * @return JsonParserException
12
     */
13
    public static function createFromError(string $error): self
14
    {
15
        return new self($error);
16
    }
17
}
18