Passed
Push — 10.x ( 64cb8f...6737cd )
by Andrey
02:16
created

SourceLocaleDoesntExistsException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 2
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the "andrey-helldar/laravel-lang-publisher" project.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @author Andrey Helldar <[email protected]>
10
 *
11
 * @copyright 2021 Andrey Helldar
12
 *
13
 * @license MIT
14
 *
15
 * @see https://github.com/andrey-helldar/laravel-lang-publisher
16
 */
17
18
declare(strict_types=1);
19
20
namespace Helldar\LaravelLangPublisher\Exceptions;
21
22
use RuntimeException;
23
24
class SourceLocaleDoesntExistsException extends RuntimeException
25
{
26 6
    public function __construct(string $locale)
27
    {
28 6
        $message = sprintf('The source "%s" localization was not found.', $locale);
29
30 6
        parent::__construct($message);
31 6
    }
32
}
33