NonExistentStateException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Konsulting\Laravel\RuleRepository\Exceptions;
4
5
use Exception;
6
use Throwable;
7
8
class NonExistentStateException extends Exception
9
{
10
    /**
11
     * Construct the exception.
12
     *
13
     * @param string         $state
14
     * @param int            $code
15
     * @param Throwable|null $previous
16
     */
17 1
    public function __construct($state = "", $code = 0, Throwable $previous = null)
18
    {
19 1
        parent::__construct('The state "' . $state . '" does not exist in the target repository.',
20 1
            $code,
21 1
            $previous
22
        );
23 1
    }
24
}
25