Completed
Push — master ( 97919a...cec1cf )
by Javi
10s
created

ArrayKeyConflictException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace erasys\OpenApi\Exceptions;
4
5
use LogicException;
6
use Throwable;
7
8
class ArrayKeyConflictException extends LogicException implements OpenApiException
9
{
10 3
    public function __construct(string $property, int $code = 0, Throwable $previous = null)
11
    {
12 3
        parent::__construct(
13 3
            sprintf("The %s key has been already assigned and cannot be replaced.", $property),
14 3
            $code,
15 3
            $previous
16
        );
17 3
    }
18
}
19