Completed
Pull Request — master (#57)
by Wilmer
02:09
created

InvalidConfigException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 3
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Yiisoft\Widget\Exception;
5
6
use Throwable;
7
8
/**
9
 * Class InvalidConfigException.
10
 */
11
class InvalidConfigException extends \Exception
12
{
13
    /**
14
     * __construct.
15
     *
16
     * @param string $message
17
     * @param integer $code
18
     *
19
     * @param Throwable $previous
20
     */
21 2
    public function __construct(string $message, int $code = 0, Throwable $previous = null)
22
    {
23 2
        parent::__construct($message, $code, $previous);
24
    }
25
}
26