InvalidViewTemplateException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
use Throwable;
6
7
final class InvalidViewTemplateException extends TelegramGitNotifierException
8
{
9
    public static function create(
10
        string $view,
11
        Throwable $previous = null
12
    ): self {
13
        return new self(
14
            "Invalid view template: {$view}",
15
            0,
16
            $previous
17
        );
18
    }
19
}
20