Passed
Push — master ( 63f785...e28c78 )
by Michael
02:34
created

DefinitionNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Mikemirten\Component\JsonApi\Mapper\Definition\Exception;
5
6
class DefinitionNotFoundException extends DefinitionProviderException
7
{
8
    /**
9
     * Definition for class not found exception
10
     *
11
     * @param string     $class
12
     * @param \Throwable $previous
13
     */
14
    public function __construct(string $class, \Throwable $previous = null)
15
    {
16
        $message = sprintf('Definition for class "%s" not found.', $class);
17
18
        parent::__construct($message, 0, $previous);
19
    }
20
}