EntryNotFoundException::viewNotFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
final class EntryNotFoundException extends TelegramGitNotifierException
6
{
7
    public static function fileNotFound(): self
8
    {
9
        return new self('File not found');
10
    }
11
12
    public static function configNotFound(string $config): self
13
    {
14
        return new self("Config {$config} not found");
15
    }
16
17
    public static function viewNotFound(string $view): self
18
    {
19
        return new self("View {$view} not found");
20
    }
21
}
22