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

LogNotFoundException::make()   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     LogNotFoundException
9
 *
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class LogNotFoundException extends LogViewerException
13
{
14
    /**
15
     * Make the exception.
16
     *
17
     * @param  string  $date
18
     *
19
     * @return static
20
     */
21 16
    public static function make(string $date)
22
    {
23 16
        return new static("Log not found in this date [{$date}]");
24
    }
25
}
26