Test Failed
Push — main ( 74429e...c3904f )
by Dimitri
05:56 queued 03:43
created

ParametresException::directoryOfFileNotFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 1
cp 0
crap 2
rs 10
1
<?php
2
3
/**
4
 * This file is part of BlitzPHP Parametres.
5
 *
6
 * (c) 2025 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Parametres\Exceptions;
13
14
use RuntimeException;
15
16
class ParametresException extends RuntimeException
17
{
18
    public static function fileForStorageNotDefined(): self
19
    {
20
        return new self("Le fichier de stockage des données n'a pas été définit");
21
    }
22
23
    public static function directoryOfFileNotFound(string $path): self
24
    {
25
        return new self("Le répertoire du fichier '{$path}' n'a pas été trouvé");
26
    }
27
}
28