Completed
Push — master ( 46643f...f8548b )
by ARCANEDEV
20s queued 14s
created

FilesystemException::invalidPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\LogViewer\Exceptions;
6
7
/**
8
 * Class     FilesystemException
9
 *
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class FilesystemException extends LogViewerException
13
{
14 12
    public static function cannotDeleteLog()
15
    {
16 12
        return new static('There was an error deleting the log.');
17
    }
18
19 12
    public static function invalidPath(string $path)
20
    {
21 12
        return new static("The log(s) could not be located at : $path");
22
    }
23
}
24