Test Failed
Pull Request — main (#8)
by Dimitri
01:58
created

ParametresException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fileForStorageNotDefined() 0 3 1
A directoryOfFileNotFound() 0 3 1
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