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

UndefinedPropertyException   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 UndefinedPropertyException extends LogicException implements OpenApiException
9
{
10 15
    public function __construct(string $property, int $code = 0, Throwable $previous = null)
11
    {
12 15
        parent::__construct(
13 15
            sprintf("The %s property is not defined. Dynamic access is disabled for Open API objects.", $property),
14 15
            $code,
15 15
            $previous
16
        );
17 15
    }
18
}
19