InvalidViewTemplateException::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
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