EntryNotFoundException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 15
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A fileNotFound() 0 3 1
A configNotFound() 0 3 1
A viewNotFound() 0 3 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