TelegramGitNotifierException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isEmpty() 0 3 1
A invalid() 0 3 1
1
<?php
2
3
namespace CSlant\TelegramGitNotifier\Exceptions;
4
5
use Exception;
6
7
class TelegramGitNotifierException extends Exception
8
{
9
    public static function isEmpty(): self
10
    {
11
        return new self('Telegram Git Notifier is empty');
12
    }
13
14
    public static function invalid(): self
15
    {
16
        return new self('Telegram Git Notifier is invalid');
17
    }
18
}
19