UndefinedPropertyException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 3
c 1
b 1
f 0
dl 0
loc 6
rs 10
ccs 3
cts 3
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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
        $message = 'The %s property is not defined. Dynamic access is disabled for Open API objects.';
13 15
        parent::__construct(sprintf($message, $property), $code, $previous);
14 15
    }
15
}
16