SettingsNotFound::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 3
dl 0
loc 7
ccs 0
cts 4
cp 0
crap 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Scout Extended.
7
 *
8
 * (c) Algolia Team <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Algolia\ScoutExtended\Exceptions;
15
16
use Exception;
17
use Throwable;
18
19
final class SettingsNotFound extends Exception
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
25
    {
26
        if (empty($message)) {
27
            $message = 'Settings not found.';
28
        }
29
30
        parent::__construct($message, $code, $previous);
31
    }
32
}
33