ApiSchemaException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace CHStudio\Raven\Validator\Exception;
4
5
use RuntimeException;
6
use Throwable;
7
8
class ApiSchemaException extends RuntimeException implements ValidationException
9
{
10 3
    public function __construct(
11
        Throwable $previous
12
    ) {
13 3
        $message = sprintf(
14 3
            'Something went wrong with the API schema: %s.',
15 3
            $previous->getMessage()
16 3
        );
17
18 3
        parent::__construct($message, 0, $previous);
19
    }
20
}
21