Passed
Pull Request — master (#22)
by Jacques
05:09
created

UiElementNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace MonsieurBiz\SyliusRichEditorPlugin\Exception;
5
6
final class UiElementNotFoundException extends \Exception
7
{
8
    /**
9
     * UiElementNotFoundException constructor.
10
     *
11
     * @param string $type
12
     * @param \Exception|null $previous
13
     */
14
    public function __construct(string $type, ?\Exception $previous = null)
15
    {
16
        parent::__construct(sprintf('UiElement with type "%s" could not be found!', $type), 0, $previous);
17
    }
18
}
19