UnsatisfiableConstraintException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ctefan\Kiwi\Exception;
5
6
use Ctefan\Kiwi\Constraint;
7
use Throwable;
8
9
class UnsatisfiableConstraintException extends Exception
10
{
11
    /**
12
     * @var Constraint
13
     */
14
    protected $constraint;
15
16
    /**
17
     * UnsatisfiableConstraintException constructor.
18
     *
19
     * @param Constraint $constraint
20
     * @param string $message
21
     * @param int $code
22
     * @param Throwable|null $previous
23
     */
24 9
    public function __construct(Constraint $constraint, string $message = "", int $code = 0, Throwable $previous = null)
25
    {
26 9
        $this->constraint = $constraint;
27 9
        parent::__construct($message, $code, $previous);
28
    }
29
}