UnknownConstraintException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 0
cts 4
cp 0
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
8
class UnknownConstraintException extends Exception
9
{
10
    /**
11
     * @var Constraint
12
     */
13
    protected $constraint;
14
15
    /**
16
     * UnknownConstraintException constructor.
17
     *
18
     * @param Constraint $constraint
19
     * @param string $message
20
     * @param int $code
21
     * @param \Throwable|null $previous
22
     */
23
    public function __construct(Constraint $constraint, string $message = "", int $code = 0, \Throwable $previous = null)
24
    {
25
        $this->constraint = $constraint;
26
        parent::__construct($message, $code, $previous);
27
    }
28
}